ZeroHour

CVE-2026-86140

mass

Stack Buffer Overflow in libxml2 (xmlSnprintfElements) Fixed in 2.15.4

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

libxml2 versions before 2.15.4 contain a stack-based buffer overflow (CWE-121) in xmlSnprintfElements in valid.c, where unbounded strcat calls are used while building DTD validation error messages that enumerate an element's child elements. The flaw is triggered when a vulnerable application processes an XML document that fails DTD validation and whose error-description output exceeds the fixed-size stack buffer, such as a document with many or long child element names. Successful exploitation can corrupt the process stack, potentially crashing the application or enabling code execution with the privileges of the parsing process, consistent with the CVSS 3.1 score of 8 (high) reflecting high confidentiality and integrity impact and a local attack vector. Any application, service, or system linking a vulnerable libxml2 and performing DTD validation of untrusted XML is affected, which spans a large share of the software ecosystem given libxml2's role as a ubiquitous XML parsing library. No public proof-of-concept, CISA KEV listing, or confirmed in-the-wild exploitation is known, and EPSS currently estimates only a 0.1% probability of exploitation within 30 days.

What to do: Upgrade libxml2 to 2.15.4 or later, or install updated libxml2 packages from your operating system or application vendor as they become available. Inventory applications and services linked against libxml2 and determine whether any of them perform DTD validation on untrusted XML input. As an interim mitigation, restrict or disable DTD validation of untrusted documents until patched.

Affected
libxml2 project libxml2all versions before 2.15.4
Estimated exposure
masstens of millions of installations (libxml2 ships by default on virtually all Linux distributions and is bundled into countless applications and language… — No plugin or scan counts apply, so the estimate rests on libxml2's role as the standard XML parser distributed with nearly every Linux distribution and embedded in a vast range of downstream software, while the practically exploitable…

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, xmlSnprintfElements in valid.c has a strcat stack-based buffer overflow.

Vendors
xmlsoft
Products
libxml2
Weakness
CWE-121
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.