CVE-2026-86140
Received Received - Intake

Buffer Overflow in libxml2 via xmlSnprintfElements

Vulnerability report for CVE-2026-86140, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-05

Last updated on: 2026-09-05

Assigner: MITRE

Description

In libxml2 before 2.15.4, xmlSnprintfElements in valid.c has a strcat stack-based buffer overflow.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-05
Last Modified
2026-09-05
Generated
2026-09-05
AI Q&A
2026-09-05
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
gnome libxml2 to 2.15.4 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-121 A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a stack-based buffer overflow in the libxml2 library before version 2.15.4. It occurs in the xmlSnprintfElements function in valid.c due to unsafe strcat operations that append characters without checking buffer space. The function adds parentheses without bounds checks, risking memory corruption or crashes.

Impact Analysis

An attacker could exploit this to cause crashes, execute arbitrary code, or corrupt memory on systems using vulnerable libxml2 versions. This may lead to denial-of-service or potential remote code execution if the library processes malicious XML data.

Mitigation Strategies

Update libxml2 to version 2.15.4 or later to address the buffer overflow in xmlSnprintfElements. Verify the update by checking the library version with commands like 'xml2-config --version' or 'ldconfig -p | grep libxml2'.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-86140. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart