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.
{
"cna_assigner": "mitre",
"cwe_ids": [
"CWE-192"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/86xxx/CVE-2026-86143.json"
}{
"cpe": "cpe:2.3:a:xmlsoft:libxml2:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "2.15.4"
}
],
"source": [
"CPE_RANGE",
"REFERENCES"
]
}
{
"cpe": "cpe:2.3:a:xmlsoft:libxml2:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "2.15.4"
}
],
"source": "CPE_RANGE"
}
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-86143.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "243576193567631229623768379237119141804",
"length": 1433
},
"id": "CVE-2026-86143-3a0a366f",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/gnome/libxml2/commit/90f293ba74d28b1d570920382e707586f68ebf35",
"target": {
"file": "xmlIO.c",
"function": "xmlOutputBufferWrite"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"135824017899079385230044656418834369516",
"178943050198151867406913195363365258965",
"122799734892684795311319558438398291924",
"251862891669818244351874468049992981706",
"156976809351673311653226252900490666252",
"62784944547850306834330791735045408432",
"195597737505191357361111100492823418640",
"33892583182042890897181355713455150679",
"213677539294908006739892218117981542638",
"82118793017114255533048050657397870287",
"294667027545259159252479420151736921945",
"145160530304768202336903496412302394733",
"315151670324453602076834418846677609302",
"179464180209241932068184880902218271811",
"214081964191764141670796369021475985815",
"110020968457343585378647628930813405329"
],
"threshold": 0.9
},
"id": "CVE-2026-86143-95bfda7e",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/gnome/libxml2/commit/90f293ba74d28b1d570920382e707586f68ebf35",
"target": {
"file": "xmlIO.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "234769112045346764165499557337877152097",
"length": 1009
},
"id": "CVE-2026-86143-aa423db0",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/gnome/libxml2/commit/90f293ba74d28b1d570920382e707586f68ebf35",
"target": {
"file": "xmlIO.c",
"function": "xmlOutputBufferFlush"
}
}
]
"2026-09-17T08:09:59Z"