CVE-2012-2871: Buffer Overflow

Published Aug 30, 2012
·
Updated

A heap-buffer overflow flaw was found in libxslt, a C library which allows to transform XML files into other XML files (or HTML, text, ...) using the standard XSLT stylesheet transformation mechanism. It was found that when applying templates to nodes selected by "namespace::", a out-of-bounds read is performed. Later, this value is used during unlinking of nodes, leading to a WRITE error in xmlUnlinkNode().

Reference: https://code.google.com/p/chromium/issues/detail?id=138673

Upstream patch: http://git.gnome.org/browse/libxslt/commit/?id=937ba2a3eb42d288f53c8adc211bd1122869f0bf

Other sources

libxml2 2.9.0-rc1 and earlier, as used in Google Chrome before 21.0.1180.89, does not properly support a cast of an unspecified variable during handling of XSL transforms, which allows remote attackers to cause a denial of service or possibly have unknown other impact via a crafted document, related to the xmlNs data structure in include/libxml/tree.h.

Affected Software

101 affected components
Apple iPhone OS<=6.1.4
Apple iPhone OS=1.0.0
Apple iPhone OS=1.0.1
Apple iPhone OS=1.0.2
Apple iPhone OS=1.1.0
Apple iPhone OS=1.1.1
Apple iPhone OS=1.1.2
Apple iPhone OS=1.1.3
Apple iPhone OS=1.1.4
Apple iPhone OS=1.1.5
Apple iPhone OS=2.0
Apple iPhone OS=2.0.0
Apple iPhone OS=2.0.1
Apple iPhone OS=2.0.2
Apple iPhone OS=2.1
Apple iPhone OS=2.1.1
Apple iPhone OS=2.2
Apple iPhone OS=2.2.1
Apple iPhone OS=3.0
Apple iPhone OS=3.0.1
Apple iPhone OS=3.1
Apple iPhone OS=3.1.2
Apple iPhone OS=3.1.3
Apple iPhone OS=3.2
Apple iPhone OS=3.2.1
Apple iPhone OS=3.2.2
Apple iPhone OS=4.0
Apple iPhone OS=4.0.1
Apple iPhone OS=4.0.2
Apple iPhone OS=4.1
Apple iPhone OS=4.2.1
Apple iPhone OS=4.2.5
Apple iPhone OS=4.2.8
Apple iPhone OS=4.3.0
Apple iPhone OS=4.3.1
Apple iPhone OS=4.3.2
Apple iPhone OS=4.3.3
Apple iPhone OS=4.3.5
Apple iPhone OS=5.0
Apple iPhone OS=5.0.1
Apple iPhone OS=5.1
Apple iPhone OS=5.1.1
Apple iPhone OS=6.0
Apple iPhone OS=6.0.1
Apple iPhone OS=6.0.2
Apple iPhone OS=6.1
Apple iPhone OS=6.1.2
Apple iPhone OS=6.1.3
Google Chrome<=21.0.1180.88
Google Chrome=21.0.1180.0
Google Chrome=21.0.1180.1
Google Chrome=21.0.1180.2
Google Chrome=21.0.1180.31
Google Chrome=21.0.1180.32
Google Chrome=21.0.1180.33
Google Chrome=21.0.1180.34
Google Chrome=21.0.1180.35
Google Chrome=21.0.1180.36
Google Chrome=21.0.1180.37
Google Chrome=21.0.1180.38
Google Chrome=21.0.1180.39
Google Chrome=21.0.1180.41
Google Chrome=21.0.1180.46
Google Chrome=21.0.1180.47
Google Chrome=21.0.1180.48
Google Chrome=21.0.1180.49
Google Chrome=21.0.1180.50
Google Chrome=21.0.1180.51
Google Chrome=21.0.1180.52
Google Chrome=21.0.1180.53
Google Chrome=21.0.1180.54
Google Chrome=21.0.1180.55
Google Chrome=21.0.1180.56
Google Chrome=21.0.1180.57
Google Chrome=21.0.1180.59
Google Chrome=21.0.1180.60
Google Chrome=21.0.1180.61
Google Chrome=21.0.1180.62
Google Chrome=21.0.1180.63
Google Chrome=21.0.1180.64
Google Chrome=21.0.1180.68
Google Chrome=21.0.1180.69
Google Chrome=21.0.1180.70
Google Chrome=21.0.1180.71
Google Chrome=21.0.1180.72
Google Chrome=21.0.1180.73
Google Chrome=21.0.1180.74
Google Chrome=21.0.1180.75
Google Chrome=21.0.1180.76
Google Chrome=21.0.1180.77
Google Chrome=21.0.1180.78
Google Chrome=21.0.1180.79
Google Chrome=21.0.1180.80
Google Chrome=21.0.1180.81
Google Chrome=21.0.1180.82
Google Chrome=21.0.1180.83
Google Chrome=21.0.1180.84
Google Chrome=21.0.1180.85
Google Chrome=21.0.1180.86
Google Chrome=21.0.1180.87
XMLSoft Libxml2<=2.9.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Google Chrome to a version that resolves this vulnerability.

    Fixed in 21.0.1180.89

Event History

Aug 30, 2012
Data Sourced
via Red Hat·03:38 AM
DescriptionSeverityAffected Software
Aug 31, 2012
CVE Published
via MITRE·07:00 PM
Data Sourced
via MITRE·07:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2012-2871?

CVE-2012-2871 has a medium severity rating, as it may lead to denial of service or other unknown impacts.

2

How do I fix CVE-2012-2871?

To fix CVE-2012-2871, update Google Chrome to version 21.0.1180.89 or later, and ensure that your version of libxml2 is 2.9.0 or newer.

3

Which software versions are affected by CVE-2012-2871?

CVE-2012-2871 affects Apple iPhone OS versions up to 6.1.4 and Google Chrome versions up to 21.0.1180.88.

4

What types of attacks may exploit CVE-2012-2871?

CVE-2012-2871 may be exploited through crafted documents that manipulate XSL transforms, leading to denial of service.

5

Is CVE-2012-2871 still a concern today?

CVE-2012-2871 is less of a concern today as it primarily affects outdated software versions that should no longer be in use.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203