libxml2: User-assisted execution of arbitrary code — GLSA 201202-09

A boundary 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.7.8-r4
Unaffected versions >= 2.7.8-r4

Background

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

Description

The "xmlStringLenDecodeEntities()" function in parser.c contains a boundary error which could possibly cause a heap-based buffer overflow.

Impact

A remote attacker could entice a user to open a specially crafted XML file in an application linked against libxml2, possibly resulting in the remote execution of arbitrary code with the permissions of the user running the application, or Denial of Service.

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.7.8-r4"
 

Packages which depend on this library may need to be recompiled. Tools such as revdep-rebuild may assist in identifying some of these packages.

References

Release date
February 29, 2012

Latest revision
February 29, 2012: 2

Severity
normal

Exploitable
remote

Bugzilla entries