libexpat through 2.9.0 contains a signed integer overflow vulnerability in storeAtts() in lib/xmlparse.c that allows attackers to trigger out-of-bounds writes via oversized attribute counts. Attackers can supply a multi-gigabyte document with a start tag carrying over 2^30 attributes to overflow attIndex and nPrefixes, crashing applications or corrupting heap memory.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-190"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118370.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.9.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "1bac53c4fc460a03cd9860f39501c7979f6750ae"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "621cb2c78b253ee023a86bc91d6ddb048481c04c"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-118370.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"15221654374847813875020657649845093905",
"195091959880682269817639585053292395745",
"226655627362554930599451235321435926362",
"48099685470581621030802166503393130811",
"301808699865070213884270327049808231401",
"297352788809167969070624279569832005517",
"92747911478318160329880087519872153167",
"305310882729229495832013353339558890571",
"319033642507777246376578804616963249600",
"106965883064393934882168674178302655469",
"237636070966798481776918728889953928728",
"70702209274121857409172321420617561888",
"2561497416192768961549396750807659699",
"170572545556647100036221467481356457632",
"302510357387009519704586718396837425940",
"305989868625249220380636134805755998491"
],
"threshold": 0.9
},
"id": "CVE-2026-118370-0055e9a3",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/libexpat/libexpat/commit/1bac53c4fc460a03cd9860f39501c7979f6750ae",
"target": {
"file": "expat/lib/xmlparse.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "125742692602852205125202351871361740837",
"length": 9350
},
"id": "CVE-2026-118370-3a8614fa",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/libexpat/libexpat/commit/1bac53c4fc460a03cd9860f39501c7979f6750ae",
"target": {
"file": "expat/lib/xmlparse.c",
"function": "storeAtts"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"105471245200848829273344265135435283561",
"126364655563430159410015600752474291922",
"27691526817326155454225107474520612945",
"121930985278034515237096815147195904556"
],
"threshold": 0.9
},
"id": "CVE-2026-118370-c35c5424",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/libexpat/libexpat/commit/621cb2c78b253ee023a86bc91d6ddb048481c04c",
"target": {
"file": "expat/lib/xmlparse.c"
}
}
]
"2026-11-04T07:06:13Z"