<?xml version="1.0" encoding="utf-8"?>
<cvrfdoc xmlns="http://www.icasi.org/CVRF/schema/cvrf/1.1" xmlns:cvrf="http://www.icasi.org/CVRF/schema/cvrf/1.1">
  <DocumentTitle xml:lang="en">Red Hat Security Advisory: resteasy security update</DocumentTitle>
  <DocumentType>Security Advisory</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>secalert@redhat.com</ContactDetails>
    <IssuingAuthority>Red Hat Security Response Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification><ID>RHSA-2012:1059</ID></Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
       <Revision>
         <Number>1</Number>
         <Date>2012-07-05T19:20:00Z</Date>
         <Description>Current version</Description>
       </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2012-07-05T19:20:00Z</InitialReleaseDate>
    <CurrentReleaseDate>2012-07-05T19:20:00Z</CurrentReleaseDate>
    <Generator>
      <Engine>Red Hat rhsa-to-cvrf 1.0.1484</Engine>
      <Date>2012-07-05T19:27:02Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="Topic" Type="Summary" Ordinal="1" xml:lang="en">
Updated resteasy packages that fix one security issue are now available for
JBoss Enterprise Application Platform 5.1.2 for Red Hat Enterprise Linux 4,
5, and 6.

The Red Hat Security Response Team has rated this update as having moderate
security impact. A Common Vulnerability Scoring System (CVSS) base score,
which gives a detailed severity rating, is available from the CVE link in
the References section.    </Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">
RESTEasy provides various frameworks to help you build RESTful web services
and RESTful Java applications.

It was found that RESTEasy was vulnerable to XML External Entity (XXE)
attacks. If a remote attacker submitted a request containing an external
XML entity to a RESTEasy endpoint, the entity would be resolved, allowing
the attacker to read files accessible to the user running the application
server. This flaw affected DOM (Document Object Model) Document and JAXB
(Java Architecture for XML Binding) input. (CVE-2012-0818)

Note: The fix for CVE-2012-0818 is not enabled by default. This update adds
a new configuration option to disable entity expansion in RESTEasy. If
applications on your server expose RESTEasy XML endpoints, a
resteasy.document.expand.entity.references configuration snippet must be
added to their web.xml file to disable entity expansion in RESTEasy. Refer
to Red Hat Bugzilla bug 785631 for details.

Warning: Before applying this update, back up your JBoss Enterprise
Application Platform's &quot;jboss-as/server/[PROFILE]/deploy/&quot; directory, along
with all other customized configuration files.

Users of JBoss Enterprise Application Platform 5.1.2 on Red Hat Enterprise
Linux 4, 5, and 6 should upgrade to these updated packages, which correct
this issue. The JBoss server process must be restarted for this update to
take effect.    </Note>
    <Note Title="Terms of Use" Ordinal="3" Type="Legal Disclaimer" xml:lang="en">Please see https://www.redhat.com/footer/terms-of-use.html</Note>
  </DocumentNotes>
  <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
  <AggregateSeverity Namespace="https://access.redhat.com/security/updates/classification/">Moderate</AggregateSeverity>
  <DocumentReferences>
    <Reference Type="Self">
       <URL>https://rhn.redhat.com/errata/RHSA-2012-1059.html</URL>
       <Description>https://rhn.redhat.com/errata/RHSA-2012-1059.html</Description>
    </Reference>
    <Reference>
       <URL>https://access.redhat.com/security/updates/classification/#moderate</URL>
       <Description>https://access.redhat.com/security/updates/classification/#moderate</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=785631</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=785631</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="JBoss Enterprise Application Platform">
      <Branch Type="Product Name" Name="JBoss Enterprise Application Platform 5 for RHEL 4 AS">
        <FullProductName ProductID="4AS-JBEAP-5">JBoss Enterprise Application Platform 5 for RHEL 4 AS</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="JBoss Enterprise Application Platform 5 for RHEL 6 Server">
        <FullProductName ProductID="6Server-JBEAP-5">JBoss Enterprise Application Platform 5 for RHEL 6 Server</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="JBoss Enterprise Application Platform 5 for RHEL 4 ES">
        <FullProductName ProductID="4ES-JBEAP-5">JBoss Enterprise Application Platform 5 for RHEL 4 ES</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="JBoss Enterprise Application Platform 5 for RHEL 5 Server">
        <FullProductName ProductID="5Server-JBEAP-5">JBoss Enterprise Application Platform 5 for RHEL 5 Server</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="resteasy-1.2.1-10.CP02_patch01.1.ep5.el4">
      <FullProductName ProductID="resteasy-1.2.1-10.CP02_patch01.1.ep5.el4">resteasy-1.2.1-10.CP02_patch01.1.ep5.el4.src.rpm</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="resteasy-1.2.1-10.CP02_patch01.1.ep5.el5">
      <FullProductName ProductID="resteasy-1.2.1-10.CP02_patch01.1.ep5.el5">resteasy-1.2.1-10.CP02_patch01.1.ep5.el5.src.rpm</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="resteasy-1.2.1-10.CP02_patch01.1.ep5.el6">
      <FullProductName ProductID="resteasy-1.2.1-10.CP02_patch01.1.ep5.el6">resteasy-1.2.1-10.CP02_patch01.1.ep5.el6.src.rpm</FullProductName>
    </Branch>
    <Relationship ProductReference="resteasy-1.2.1-10.CP02_patch01.1.ep5.el4" RelationType="Default Component Of" RelatesToProductReference="4AS-JBEAP-5">
      <FullProductName ProductID="4AS-JBEAP-5:resteasy-1.2.1-10.CP02_patch01.1.ep5.el4">resteasy-1.2.1-10.CP02_patch01.1.ep5.el4 as a component of JBoss Enterprise Application Platform 5 for RHEL 4 AS</FullProductName>
    </Relationship>
    <Relationship ProductReference="resteasy-1.2.1-10.CP02_patch01.1.ep5.el6" RelationType="Default Component Of" RelatesToProductReference="6Server-JBEAP-5">
      <FullProductName ProductID="6Server-JBEAP-5:resteasy-1.2.1-10.CP02_patch01.1.ep5.el6">resteasy-1.2.1-10.CP02_patch01.1.ep5.el6 as a component of JBoss Enterprise Application Platform 5 for RHEL 6 Server</FullProductName>
    </Relationship>
    <Relationship ProductReference="resteasy-1.2.1-10.CP02_patch01.1.ep5.el4" RelationType="Default Component Of" RelatesToProductReference="4ES-JBEAP-5">
      <FullProductName ProductID="4ES-JBEAP-5:resteasy-1.2.1-10.CP02_patch01.1.ep5.el4">resteasy-1.2.1-10.CP02_patch01.1.ep5.el4 as a component of JBoss Enterprise Application Platform 5 for RHEL 4 ES</FullProductName>
    </Relationship>
    <Relationship ProductReference="resteasy-1.2.1-10.CP02_patch01.1.ep5.el5" RelationType="Default Component Of" RelatesToProductReference="5Server-JBEAP-5">
      <FullProductName ProductID="5Server-JBEAP-5:resteasy-1.2.1-10.CP02_patch01.1.ep5.el5">resteasy-1.2.1-10.CP02_patch01.1.ep5.el5 as a component of JBoss Enterprise Application Platform 5 for RHEL 5 Server</FullProductName>
    </Relationship>
  </ProductTree>

  <Vulnerability Ordinal="1" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
    <Notes><Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">It was found that RESTEasy was vulnerable to XML External Entity (XXE) attacks. If a remote attacker submitted a request containing an external XML entity to a RESTEasy endpoint, the entity would be resolved, allowing the attacker to read files accessible to the user running the application server. This flaw affected DOM (Document Object Model) Document and JAXB (Java Architecture for XML Binding) input. 
Note: The fix for CVE-2012-0818 is not enabled by default. This update adds a new configuration option to disable entity expansion in RESTEasy. If applications on your server expose RESTEasy XML endpoints, a resteasy.document.expand.entity.references configuration snippet must be added to their web.xml file to disable entity expansion in RESTEasy. Refer to Red Hat Bugzilla bug 785631 for details.</Note></Notes>
    <DiscoveryDate>2012-01-24T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2011-12-30T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2012-0818</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>4AS-JBEAP-5:resteasy-1.2.1-10.CP02_patch01.1.ep5.el4</ProductID>
      <ProductID>4ES-JBEAP-5:resteasy-1.2.1-10.CP02_patch01.1.ep5.el4</ProductID>
      <ProductID>5Server-JBEAP-5:resteasy-1.2.1-10.CP02_patch01.1.ep5.el5</ProductID>
      <ProductID>6Server-JBEAP-5:resteasy-1.2.1-10.CP02_patch01.1.ep5.el6</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Moderate</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>5</BaseScore>
      <Vector>AV:N/AC:L/Au:N/C:P/I:N/A:N</Vector>
    </ScoreSet></CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix"><Description xml:lang="en">
Before applying this update, make sure all previously-released errata
relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
https://access.redhat.com/knowledge/articles/11258    </Description>      <URL>https://rhn.redhat.com/errata/RHSA-2012-1059.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2012-0818.html</URL>
        <Description>CVE-2012-0818</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.redhat.com/show_bug.cgi?id=785631</URL>
        <Description>bz#785631: CVE-2012-0818 RESTEasy: XML eXternal Entity (XXE) flaw</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
