Bug 1332443 (CVE-2016-3705) - CVE-2016-3705 libxml2: stack overflow before detecting invalid XML file
Summary: CVE-2016-3705 libxml2: stack overflow before detecting invalid XML file
Alias: CVE-2016-3705
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1332831 1332832 1332833 1340367 1340369 1340370 1340371
Blocks: 1332827 1395463
TreeView+ depends on / blocked
Reported: 2016-05-03 08:23 UTC by Martin Prpič
Modified: 2021-12-10 14:39 UTC (History)
23 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
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.
Clone Of:
Last Closed: 2019-06-08 02:51:07 UTC

Attachments (Terms of Use)
proposed patch (2.18 KB, text/plain)
2016-05-03 08:27 UTC, Martin Prpič
no flags Details

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:1292 0 normal SHIPPED_LIVE Important: libxml2 security update 2016-07-18 17:29:39 UTC
Red Hat Product Errata RHSA-2016:2957 0 normal SHIPPED_LIVE Important: Red Hat JBoss Core Services Apache HTTP 2.4.23 Release 2016-12-16 03:11:19 UTC

Description Martin Prpič 2016-05-03 08:23:02 UTC
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:


Comment 1 Martin Prpič 2016-05-03 08:27:34 UTC
Created attachment 1153279 [details]
proposed patch

Comment 3 Andrej Nemec 2016-05-04 07:32:05 UTC
Created libxml2 tracking bugs for this issue:

Affects: fedora-all [bug 1332831]

Comment 4 Andrej Nemec 2016-05-04 07:32:11 UTC
Created mingw-libxml2 tracking bugs for this issue:

Affects: fedora-all [bug 1332832]
Affects: epel-7 [bug 1332833]

Comment 5 Andrej Nemec 2016-05-04 07:32:25 UTC
Public via:


Comment 6 Cedric Buissart 2016-05-25 08:25:25 UTC
Upstream commit for this issue : 

Comment 9 errata-xmlrpc 2016-06-23 10:32:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6
  Red Hat Enterprise Linux 7

Via RHSA-2016:1292 https://access.redhat.com/errata/RHSA-2016:1292

Comment 10 errata-xmlrpc 2016-12-15 22:18:08 UTC
This issue has been addressed in the following products:

Via RHSA-2016:2957 https://rhn.redhat.com/errata/RHSA-2016-2957.html

Note You need to log in before you can comment on or make changes to this bug.