PT-2017-3325 · Libxml2+1 · Libxml2+1

Published

2017-03-03

·

Updated

2021-07-20

·

CVE-2017-16931

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions libxml2 versions prior to 2.9.5
Description The issue is caused by a buffer overflow in the NEXTL macro of the libxml2 library's xml parser, specifically in the parser.c file. This can be exploited by a remote attacker to inject XML external entities (XXE Injection) using a specially crafted DTD name containing the '%' character. The vulnerability arises from the mishandling of parameter-entity references when the NEXTL macro encounters a '%' character in a DTD name, leading to the xmlParserHandlePEReference function being called.
Recommendations For libxml2 versions prior to 2.9.5, update to version 2.9.5 or later to resolve the issue. As a temporary workaround, consider restricting the use of the NEXTL macro or the xmlParserHandlePEReference function in the parser.c file until a patch is applied. Additionally, avoid using DTD names containing the '%' character in affected API endpoints, such as "/api/v1/xmlparser", until the issue is resolved.

Fix

Buffer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2017-1240
BDU:2018-00090
CVE-2017-16931
DLA-1194-1

Affected Products

Alt Linux
Libxml2