Buffer overflow in Libxml2 - CVE-2017-16931
Published: November 23, 2017 / Updated: July 28, 2020
Vulnerability identifier: #VU32048
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-16931
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 execute arbitrary code.
parser.c in libxml2 before 2.9.5 mishandles parameter-entity references because the NEXTL macro calls the xmlParserHandlePEReference function in the case of a '%' character in a DTD name.
Affected software
Libxml2
Amazon Linux AMI
libxml2 (Alpine package)
libxml2
Amazon Linux AMI
libxml2 (Alpine package)
libxml2
How to mitigate CVE-2017-16931
Install update from vendor's website.
Libxml2 - update to 2.9.5
libxml2 (Alpine package) - update to 2.9.5-r0
libxml2 - update to 2.9.1-6.6.42
libxml2 (Alpine package) - update to 2.9.5-r0
libxml2 - update to 2.9.1-6.6.42