In xmlIO in libxml2 before 2.15.4, an inconsistency in xmlOutputWriteCallback and xmlBufUse causes negative lengths to reach write callbacks, aka a lack of a check for integer overflow before calling writecallback. This has security relevance for many types of uses of that length value within a callback.
{
"cwe_ids": [
"CWE-192"
],
"cna_assigner": "mitre",
"unresolved_ranges": [
{
"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-86143.json"
}[
{
"target": {
"file": "xmlIO.c",
"function": "xmlOutputBufferWrite"
},
"deprecated": false,
"id": "CVE-2026-86143-3a0a366f",
"signature_version": "v1",
"digest": {
"function_hash": "243576193567631229623768379237119141804",
"length": 1433.0
},
"signature_type": "Function",
"source": "https://github.com/gnome/libxml2/commit/90f293ba74d28b1d570920382e707586f68ebf35"
},
{
"target": {
"file": "xmlIO.c"
},
"deprecated": false,
"id": "CVE-2026-86143-95bfda7e",
"signature_version": "v1",
"digest": {
"line_hashes": [
"135824017899079385230044656418834369516",
"178943050198151867406913195363365258965",
"122799734892684795311319558438398291924",
"251862891669818244351874468049992981706",
"156976809351673311653226252900490666252",
"62784944547850306834330791735045408432",
"195597737505191357361111100492823418640",
"33892583182042890897181355713455150679",
"213677539294908006739892218117981542638",
"82118793017114255533048050657397870287",
"294667027545259159252479420151736921945",
"145160530304768202336903496412302394733",
"315151670324453602076834418846677609302",
"179464180209241932068184880902218271811",
"214081964191764141670796369021475985815",
"110020968457343585378647628930813405329"
],
"threshold": 0.9
},
"signature_type": "Line",
"source": "https://github.com/gnome/libxml2/commit/90f293ba74d28b1d570920382e707586f68ebf35"
},
{
"target": {
"file": "xmlIO.c",
"function": "xmlOutputBufferFlush"
},
"deprecated": false,
"id": "CVE-2026-86143-aa423db0",
"signature_version": "v1",
"digest": {
"function_hash": "234769112045346764165499557337877152097",
"length": 1009.0
},
"signature_type": "Function",
"source": "https://github.com/gnome/libxml2/commit/90f293ba74d28b1d570920382e707586f68ebf35"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-86143.json"
"2026-09-06T08:01:51Z"