Bug 785631 (CVE-2011-5245, CVE-2012-0818)

Summary: CVE-2011-5245 CVE-2012-0818 RESTEasy: XML eXternal Entity (XXE) flaw
Product: [Other] Security Response Reporter: David Jorm <djorm>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aneelica, bkearney, brms-jira, iheim, jcoleman, jesusr, jrusnack, mjc, mrietvel, pavelp, pprakash, rzhang, tkirby
Target Milestone: ---Keywords: Reopened, Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20111230,reported=20120124,source=internet,cvss2=5/AV:N/AC:L/Au:N/C:P/I:N/A:N,brms-5/Security=affected,soap-5/Security=affected,openshift-1/rhc-server=affected,rhes-2.1/resteasy=affected,bpms-6/security=affected,brms-6/security=affected,jdv-6/Teiid=affected,cwe=CWE-611
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-15 11:20:07 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 787556, 787557, 800778, 805758, 825575, 831576, 1006652, 1006653, 1006654, 1073659, 1073660, 1081776, 1085557, 1165383    
Bug Blocks: 785632, 787530, 787847, 788798, 798948, 808950, 812180, 1007656, 1072116, 1084867    

Description David Jorm 2012-01-29 23:48:37 EST
RESTEasy permits XXE (XML eXternal Entity) attacks. If a RESTEasy endpoint is deployed, a user can submit a request containing an external XML entity. This XML entity will be resolved, allowing a remote attacker to read files in the context of the user running the application server. This flaw affects DOM Document, JAXB and Fast Infoset (FI) input.

Upstream bugs:
https://issues.jboss.org/browse/RESTEASY-637
https://issues.jboss.org/browse/RESTEASY-647
https://issues.jboss.org/browse/RESTEASY-659
Comment 6 Julian Coleman 2012-02-22 07:47:57 EST
EAP 5.1.2 issue:
  https://issues.jboss.org/browse/JBPAPP-8054
EWP 5.1.2 issue:
  https://issues.jboss.org/browse/JBPAPP-8055
Comment 9 errata-xmlrpc 2012-03-26 11:19:12 EDT
This issue has been addressed in following products:

  RHEV Manager version 3.x

Via RHSA-2012:0421 https://rhn.redhat.com/errata/RHSA-2012-0421.html
Comment 10 Ryan Zhang 2012-03-28 04:50:41 EDT
Back port to BRMS 5.3.0 release branch.
Comment 11 errata-xmlrpc 2012-04-02 15:31:10 EDT
This issue has been addressed in following products:

  JBoss Enterprise BRMS Platform 5.2.0

Via RHSA-2012:0441 https://rhn.redhat.com/errata/RHSA-2012-0441.html
Comment 12 errata-xmlrpc 2012-04-24 22:12:00 EDT
This issue has been addressed in following products:

  JBoss Enterprise Portal Platform 5.2.1

Via RHSA-2012:0519 https://rhn.redhat.com/errata/RHSA-2012-0519.html
Comment 15 Murray McAllister 2012-06-18 22:45:11 EDT
The fix for CVE-2012-0818 is not enabled by default. After installing the relevant updates, if applications on your server expose RESTEasy XML endpoints, add the following snippet to their web.xml file to disable entity expansion in RESTEasy:

<context-param>
        <param-name>resteasy.document.expand.entity.references</param-name>
        <param-value>false</param-value>
</context-param>

Note that this <context-param> setting has precedence over <init-param>, and will override a contrary setting in an <init-param> element.
Comment 16 errata-xmlrpc 2012-07-05 15:28:30 EDT
This issue has been addressed in following products:

  JBEAP 5 for RHEL 4
  JBEAP 5 for RHEL 5
  JBEAP 5 for RHEL 6

Via RHSA-2012:1059 https://rhn.redhat.com/errata/RHSA-2012-1059.html
Comment 17 errata-xmlrpc 2012-07-05 15:28:35 EDT
This issue has been addressed in following products:

  JBEWP 5 for RHEL 4
  JBEWP 5 for RHEL 5
  JBEWP 5 for RHEL 6

Via RHSA-2012:1058 https://rhn.redhat.com/errata/RHSA-2012-1058.html
Comment 18 errata-xmlrpc 2012-07-05 15:29:08 EDT
This issue has been addressed in following products:

    JBoss Enterprise Web Platform 5.1.2

Via RHSA-2012:1057 https://rhn.redhat.com/errata/RHSA-2012-1057.html
Comment 19 errata-xmlrpc 2012-07-05 15:31:12 EDT
This issue has been addressed in following products:

  JBoss Enterprise Application Platform 5.1.2

Via RHSA-2012:1056 https://rhn.redhat.com/errata/RHSA-2012-1056.html
Comment 20 errata-xmlrpc 2012-07-31 10:33:49 EDT
This issue has been addressed in following products:

  JBoss Enterprise SOA Platform 5.3.0

Via RHSA-2012:1125 https://rhn.redhat.com/errata/RHSA-2012-1125.html
Comment 21 Vincent Danen 2012-11-27 19:34:17 EST
This was also assigned CVE-2011-5245:

The readFrom function in providers.jaxb.JAXBXmlTypeProvider in RESTEasy before 2.3.2 allows remote attackers to read arbitrary files via an external entity reference in a Java Architecture for XML Binding (JAXB) input, aka an XML external entity (XXE) injection attack, a similar vulnerability to CVE-2012-0818.
Comment 24 errata-xmlrpc 2013-09-15 23:10:55 EDT
This issue has been addressed in following products:

  Red Hat Storage Console 2.1

Via RHSA-2013:1263 https://rhn.redhat.com/errata/RHSA-2013-1263.html
Comment 30 errata-xmlrpc 2014-04-03 17:22:37 EDT
This issue has been addressed in following products:

  Red Hat JBoss BPM Suite 6.0.1

Via RHSA-2014:0371 https://rhn.redhat.com/errata/RHSA-2014-0371.html
Comment 31 errata-xmlrpc 2014-04-03 17:30:54 EDT
This issue has been addressed in following products:

  Red Hat JBoss BRMS 6.0.1

Via RHSA-2014:0372 https://rhn.redhat.com/errata/RHSA-2014-0372.html