libxml2: User-assisted execution of arbitrary code — GLSA 201207-02

A off-by-one error in libxml2 could result in execution of arbitrary code or Denial of Service.

Affected packages

dev-libs/libxml2 on all architectures
Affected versions < 2.8.0_rc1
Unaffected versions >= 2.8.0_rc1

Background

libxml2 is the XML C parser and toolkit developed for the Gnome project.

Description

The "xmlXPtrEvalXPtrPart()" function in xpointer.c contains an off-by-one error.

Impact

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.

Workaround

There is no known workaround at this time.

Resolution

All libxml2 users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-libs/libxml2-2.8.0_rc1"
 

References

Release date
July 09, 2012

Latest revision
July 09, 2012: 1

Severity
normal

Exploitable
remote

Bugzilla entries