In libxml2 before 2.15.4, xmlSnprintfElements in valid.c has a strcat stack-based buffer overflow.
{
"cwe_ids": [
"CWE-121"
],
"cna_assigner": "mitre",
"unresolved_ranges": [
{
"source": "AFFECTED_FIELD",
"extracted_events": [
{
"fixed": "2.15.4"
}
]
},
{
"source": "CPE_FIELD",
"extracted_events": [
{
"fixed": "2.15.4"
}
]
},
{
"source": "DESCRIPTION",
"extracted_events": [
{
"introduced": "libxml2"
},
{
"fixed": "2.15.4"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/86xxx/CVE-2026-86140.json"
}[
{
"target": {
"file": "valid.c",
"function": "xmlSnprintfElements"
},
"deprecated": false,
"id": "CVE-2026-86140-4782bd6c",
"signature_version": "v1",
"digest": {
"function_hash": "130597350388435265844608665998721209154",
"length": 1757.0
},
"signature_type": "Function",
"source": "https://github.com/gnome/libxml2/commit/d1686f91dbda141a752200419d35639fd6b38340"
},
{
"target": {
"file": "valid.c"
},
"deprecated": false,
"id": "CVE-2026-86140-a16b75f1",
"signature_version": "v1",
"digest": {
"line_hashes": [
"119543098351765964388823927147282784643",
"271909022695536419469264749611667443708",
"215335912178009589414389142897950978120",
"303774327218663884487649299126787037860",
"78458041918150850950971139628900268737",
"110610927479821408314796361861597199554",
"264522835633174867180350571253991174384",
"282891446116975250513253912020971360863"
],
"threshold": 0.9
},
"signature_type": "Line",
"source": "https://github.com/gnome/libxml2/commit/d1686f91dbda141a752200419d35639fd6b38340"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-86140.json"
"2026-09-06T08:01:50Z"