<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200903-19">
  <title>Xerces-C++: Denial of service</title>
  <synopsis>
    An error in Xerces-C++ allows for a Denial of Service via malicious XML
    schema files.
  </synopsis>
  <product type="ebuild">xerces-c</product>
  <announced>2009-03-09</announced>
  <revised count="01">2009-03-09</revised>
  <bug>240496</bug>
  <access>remote</access>
  <affected>
    <package name="dev-libs/xerces-c" auto="yes" arch="*">
      <unaffected range="ge">3.0.0-r1</unaffected>
      <vulnerable range="lt">3.0.0-r1</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    Xerces-C++ is a validating XML parser written in a portable subset of
    C++.
    </p>
  </background>
  <description>
    <p>
    Frank Rast reported that the XML parser in Xerces-C++ does not
    correctly handle an XML schema definition with a large maxOccurs value,
    which triggers excessive memory consumption during the validation of an
    XML file.
    </p>
  </description>
  <impact type="normal">
    <p>
    A remote attacker could entice a user or automated system to validate
    an XML file using a specially crafted XML schema file, leading to a
    Denial of Service (stack consumption and crash).
    </p>
  </impact>
  <workaround>
    <p>
    There is no known workaround at this time.
    </p>
  </workaround>
  <resolution>
    <p>
    All Xerces-C++ users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=dev-libs/xerces-c-3.0.0-r1"</code>
  </resolution>
  <references>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-4482">CVE-2008-4482</uri>
  </references>
  <metadata tag="requester" timestamp="2009-01-11T17:39:39Z">
    falco
  </metadata>
  <metadata tag="submitter" timestamp="2009-02-12T18:13:38Z">
    rbu
  </metadata>
  <metadata tag="bugReady" timestamp="2009-02-12T18:13:55Z">
    rbu
  </metadata>
</glsa>
