<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="201207-02">
  <title>libxml2: User-assisted execution of arbitrary code</title>
  <synopsis>A off-by-one error in libxml2 could result in execution of
    arbitrary code or Denial of Service.
  </synopsis>
  <product type="ebuild">libxml2</product>
  <announced>2012-07-09</announced>
  <revised count="1">2012-07-09</revised>
  <bug>416209</bug>
  <access>remote</access>
  <affected>
    <package name="dev-libs/libxml2" auto="yes" arch="*">
      <unaffected range="ge">2.8.0_rc1</unaffected>
      <vulnerable range="lt">2.8.0_rc1</vulnerable>
    </package>
  </affected>
  <background>
    <p>libxml2 is the XML C parser and toolkit developed for the Gnome project.</p>
  </background>
  <description>
    <p>The "xmlXPtrEvalXPtrPart()" function in xpointer.c contains an
      off-by-one error.
    </p>
  </description>
  <impact type="normal">
    <p>A remote attacker could entice a user or automated system to open a
      specially crafted XML document with an application using libxml2,
      possibly resulting in execution of arbitrary code or a Denial of Service
      condition.
    </p>
  </impact>
  <workaround>
    <p>There is no known workaround at this time.</p>
  </workaround>
  <resolution>
    <p>All libxml2 users should upgrade to the latest version:</p>
    
    <code>
      # emerge --sync
      # emerge --ask --oneshot --verbose "&gt;=dev-libs/libxml2-2.8.0_rc1"
    </code>
  </resolution>
  <references>
    <uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2011-3102">CVE-2011-3102</uri>
  </references>
  <metadata timestamp="2012-05-29T22:42:30Z" tag="requester">
    underling
  </metadata>
  <metadata timestamp="2012-07-09T22:09:24Z" tag="submitter">ackle</metadata>
</glsa>
