CVE-2026-86140
published 2026-09-05CVE-2026-86140: In libxml2 before 2.15.4, xmlSnprintfElements in valid.c has a strcat stack-based buffer overflow.
PriorityP349high8CVSS 3.1
AVLACLPRNUINSUCHIHAL
EPSS
0.14%
3.3th percentile
In libxml2 before 2.15.4, xmlSnprintfElements in valid.c has a strcat stack-based buffer overflow.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| xmlsoft | libxml2 | < 2.15.4 | 2.15.4 |
| xmlsoft | libxml2 | — | — |
CVSS provenance
nvdv3.18.0HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
vendor_redhat8.0HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
In libxml2 before 2.15.4, xmlSnprintfElements in valid.c has a strcat stack-based buffer overflow.
ghsa_unreviewed·2026-09-05
CVE-2026-86140 [HIGH] CWE-121 In libxml2 before 2.15.4, xmlSnprintfElements in valid.c has a strcat stack-based buffer overflow.
In libxml2 before 2.15.4, xmlSnprintfElements in valid.c has a strcat stack-based buffer overflow.
VulDB
xmlsoft libxml2 up to 2.15.3 valid.c xmlSnprintfElements stack-based overflow (Nessus ID 343107)
vuldb·2026-09-05·CVSS 8.0
CVE-2026-86140 [HIGH] xmlsoft libxml2 up to 2.15.3 valid.c xmlSnprintfElements stack-based overflow (Nessus ID 343107)
A vulnerability, which was classified as problematic, was found in xmlsoft libxml2 up to 2.15.3. Affected by this vulnerability is the function xmlSnprintfElements of the file valid.c. Such manipulation leads to stack-based buffer overflow.
This vulnerability is uniquely identified as CVE-2026-86140. Local access is required to approach this attack. No exploit exists.
You should upgrade the affected component.
Red Hat
libxml2: libxml2: Arbitrary code execution via stack-based buffer overflow in xmlSnprintfElements
vendor_redhat·2026-09-05·CVSS 8.0
CVE-2026-86140 [HIGH] CWE-120 libxml2: libxml2: Arbitrary code execution via stack-based buffer overflow in xmlSnprintfElements
libxml2: libxml2: Arbitrary code execution via stack-based buffer overflow in xmlSnprintfElements
A flaw was found in libxml2, a software library for parsing XML (Extensible Markup Language) documents. The `xmlSnprintfElements` function within this library is vulnerable to a stack-based buffer overflow, a type of memory corruption. A local attacker could exploit this flaw without requiring privileges or user interaction, potentially leading to arbitrary code execution or a denial of service.
Package: libxml2 (Red Hat Hardened Images) - Affected
Package: swift-lang (Red Hat Hardened Images) - Affected
No detection rules found.
No public exploits indexed.
2026-09-05
Published