ZeroHour

CVE-2026-86139

mass

Integer Overflow in libxml2 xmlURIEscapeStr Could Enable Code Execution

CVSS 3.1
7.8 high
EPSS
<1%p1
Published
()
Modified
AI analysis

libxml2 versions before 2.15.4 contain an integer overflow (CWE-190) in the xmlURIEscapeStr function in uri.c, which is reached when the library escapes URI strings. An overly long input string passed through this code path can cause the length computation to wrap, potentially leading to heap corruption that an attacker could leverage for a crash or arbitrary code execution in the context of the process using the library. The CVSS 3.1 base score is 7.8 (high) with a local attack vector, low privileges required, and no user interaction, meaning exploitation requires the attacker to already run code or supply crafted input locally to an application that calls the affected function. Because libxml2 is a foundational XML parsing library embedded in operating systems and countless third-party applications, the vulnerable code is broadly deployed even though practical attack paths depend on how individual applications use xmlURIEscapeStr. There is no evidence of exploitation in the wild, no public proof of concept, the CVE is not in CISA's KEV catalog, and EPSS estimates only a 0.1% chance of exploitation in the next 30 days (1st percentile).

What to do: Upgrade libxml2 to version 2.15.4 or later; if you consume libxml2 through an OS distribution or a vendor product, apply the vendor's patched package rather than building from source. Inventory applications that parse or escape untrusted URI strings with libxml2 and prioritize patching those where untrusted input can reach xmlURIEscapeStr. Monitor advisories from your Linux distribution and application vendors for downstream fixes, and watch for crashes or memory-corruption anomalies in XML/URI-processing code paths as an indicator of attempted exploitation.

Affected
xmlsoft libxml2before 2.15.4
Estimated exposure
massPotentially billions of devices and applications (estimate), since libxml2 ships in essentially every major Linux distribution, macOS/iOS tooling, and is… — libxml2 is a default system library on virtually all Linux distributions and is statically linked or bundled in a very large number of desktop, server, mobile, and embedded applications, so the vulnerable code is present on the order of…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

In libxml2 before 2.15.4, xmlURIEscapeStr in uri.c has an integer overflow.

Vendors
xmlsoft
Products
libxml2
Weakness
CWE-190
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.