CVE-2016-3705: Input Validation

Published May 3, 2016
·
Updated

It is possible to trigger a stack overflow using a carefully crafted invalid xml file, the stack overflow occurs before libxml2 determines the xml file is invalid.

Upstream bug:

https://bugzilla.gnome.org/showbug.cgi?id=765207

Other sources

Missing incrementation of recursion depth counter were found in the xmlParserEntityCheck() and xmlParseAttValueComplex() functions used for parsing XML data. An attacker could launch a Denial of Service attack by passing specially crafted XML data to an application, forcing it to crash due to stack exhaustion.

The (1) xmlParserEntityCheck and (2) xmlParseAttValueComplex functions in parser.c in libxml2 2.9.3 do not properly keep track of the recursion depth, which allows context-dependent attackers to cause a denial of service (stack consumption and application crash) via a crafted XML document containing a large number of nested entity references.

Affected Software

12 affected componentsFixes available
redhat/libxml2<0:2.7.6-21.el6_8.1
0:2.7.6-21.el6_8.1
redhat/libxml2<0:2.9.1-6.el7_2.3
0:2.9.1-6.el7_2.3
debian/libxml2
2.9.4+dfsg1-7+deb10u42.9.4+dfsg1-7+deb10u62.9.10+dfsg-6.7+deb11u42.9.14+dfsg-1.3~deb12u12.9.14+dfsg-1.3
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=15.10
Canonical Ubuntu Linux=16.04
Xmlsoft Libxml2=2.9.3
Debian Debian Linux=8.0
HP IceWall Federation Agent=3.0
HP IceWall File Manager=3.0
openSUSE Leap=42.1

Event History

May 3, 2016
CVE Published
12:00 AM
Data Sourced
via Red Hat·08:23 AM
DescriptionSeverityAffected Software
May 4, 2016
Data Sourced
02:09 PM
SeverityAffected Software
May 17, 2016
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2016-3705?

CVE-2016-3705 is classified as a high-severity vulnerability due to its potential for causing a stack overflow.

2

How do I fix CVE-2016-3705?

To mitigate CVE-2016-3705, update libxml2 to the recommended versions: 0:2.7.6-21.el6_8.1 for RedHat or 2.9.4+dfsg1-7+deb10u4 for Debian.

3

What systems are affected by CVE-2016-3705?

CVE-2016-3705 affects various versions of libxml2 across different operating systems including RedHat, Debian, and Ubuntu.

4

What kind of attack does CVE-2016-3705 enable?

CVE-2016-3705 allows attackers to exploit a stack overflow by using a specially crafted invalid XML file.

5

When was CVE-2016-3705 first reported?

CVE-2016-3705 was first reported in 2016, highlighting the vulnerabilities in libxml2.

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