{"id":"CVE-2026-118370","summary":"libexpat through 2.9.0 Integer Overflow in storeAtts via attIndex and nPrefixes","details":"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.","modified":"2026-11-04T17:27:17.965906496Z","published":"2026-10-28T02:03:19.447Z","related":["openSUSE-SU-2026:12396-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118370.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-190"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118370.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118370"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/libexpat-through-2.9.0-integer-overflow-in-storeatts-via-attindex-and-nprefixes"},{"type":"FIX","url":"https://github.com/libexpat/libexpat/commit/1bac53c4fc460a03cd9860f39501c7979f6750ae"},{"type":"FIX","url":"https://github.com/libexpat/libexpat/commit/621cb2c78b253ee023a86bc91d6ddb048481c04c"},{"type":"FIX","url":"https://github.com/libexpat/libexpat/pull/1450"},{"type":"PACKAGE","url":"https://github.com/libexpat/libexpat"},{"type":"ARTICLE","url":"https://github.com/libexpat/libexpat/blob/a76b1174c1ea52abb639a4c69d52b630a8a106a2/expat/lib/xmlparse.c#L4138-L4140"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/libexpat/libexpat","events":[{"introduced":"0"},{"fixed":"1bac53c4fc460a03cd9860f39501c7979f6750ae"},{"fixed":"621cb2c78b253ee023a86bc91d6ddb048481c04c"}],"database_specific":{"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"}]}}],"versions":["R_2_9_0","R_2_8_5","R_2_8_4","R_2_8_3","R_2_8_2","R_2_8_1","R_2_8_0","R_2_7_5","R_2_7_4","R_2_7_3","R_2_7_2","R_2_7_1","R_2_7_0","R_2_6_4","R_2_6_3","R_2_6_2","R_2_6_1","R_2_6_0","R_2_5_0","R_2_4_9","R_2_4_8","R_2_4_7","R_2_4_6","R_2_4_5","R_2_4_4","R_2_4_3","R_2_4_2","R_2_4_1","R_2_4_0","R_2_3_0","R_2_2_10","R_2_2_9","R_2_2_8","R_2_2_7","R_2_2_6","R_2_2_5","R_2_2_4","R_2_2_3","R_2_2_2","R_2_2_1","R_2_2_0","R_2_1_1","R_2_1_0","R_2_0_1","R_2_0_0","R_1_95_8","R_1_95_7","R_1_95_6","R_1_95_5","R_1_95_4","R_1_95_3","R_1_95_2","R_1_95_0","libexpat-alpha-1","start","sourceforge_init","jclark-orig","V20000512","V19991013","V19990728","V19990709","V19990626","V1_1","V19990425","V1990307","V19990109","V19981231","V19981122","V1_0","beta4","beta3","beta2","REC1_0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-118370.json","vanir_signatures":[{"target":{"file":"expat/lib/xmlparse.c"},"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"}],"vanir_signatures_modified":"2026-11-04T07:04:30Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}]}