Buffer overflow in Libxml2 - CVE-2015-7942

 

Buffer overflow in Libxml2 - CVE-2015-7942

Published: November 18, 2015 / Updated: July 28, 2020


Vulnerability identifier: #VU32380
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2015-7942
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to read and manipulate data.

The xmlParseConditionalSections function in parser.c in libxml2 does not properly skip intermediary entities when it stops parsing invalid input, which allows context-dependent attackers to cause a denial of service (out-of-bounds read and crash) via crafted XML data, a different vulnerability than CVE-2015-7941.


Affected software

Libxml2
Amazon Linux AMI
Debian Linux
Fedora
Ubuntu
libxml2 (Alpine package)
libxml2 (Ubuntu package)
libxml2 (Debian package)
mingw-libxml2
libxml2

How to mitigate CVE-2015-7942

Install update from vendor's website.

libxml2 (Alpine package) - addressed in versions 2.9.1-r3, 2.9.1-r4
libxml2 (Ubuntu package) - addressed in versions 2.7.8.dfsg-5.1ubuntu4.12, 2.9.1+dfsg1-3ubuntu4.5, 2.9.2+dfsg1-3ubuntu0.1, 2.9.2+zdfsg1-4ubuntu0.1
libxml2 (Debian package) - addressed in versions 2.8.0+dfsg1-7+wheezy5, 2.9.1+dfsg1-5+deb8u1
mingw-libxml2 - addressed in versions 2.9.3-1.el7, 2.9.3-1.fc22, 2.9.3-1.fc23
libxml2 - addressed in versions 2.9.3-1.fc22, 2.9.3-1.fc23

External References

Related Security Bulletins