CVE-2026-118370

Source
https://cve.org/CVERecord?id=CVE-2026-118370
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-118370.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-118370
Downstream
ALPINE (1)
AZL (2)
BELL (1)
DEBIAN (1)
ECHO (1)
openSUSE (1)
RHSA (1)
ROOT (2)
UBUNTU (1)
Related
Published
2026-10-28T02:03:19Z
Modified
2026-11-04T17:27:05Z
Severity
  • 8.2 (High) CVSS_V4 - 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 CVSS Calculator
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.

Database specific
{
    "cna_assigner":  "VulnCheck",
    "cwe_ids":  [
        "CWE-190"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118370.json"
}
References

Affected packages

Git / github.com/libexpat/libexpat

Affected ranges

Type
GIT
Repo
https://github.com/libexpat/libexpat
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "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"
        }
    ]
}

Affected versions

Other
REC1_0
R_1_95_0
R_1_95_2
R_1_95_3
R_1_95_4
R_1_95_5
R_1_95_6
R_1_95_7
R_1_95_8
R_2_0_0
R_2_0_1
R_2_1_0
R_2_1_1
R_2_2_0
R_2_2_1
R_2_2_10
R_2_2_2
R_2_2_3
R_2_2_4
R_2_2_5
R_2_2_6
R_2_2_7
R_2_2_8
R_2_2_9
R_2_3_0
R_2_4_0
R_2_4_1
R_2_4_2
R_2_4_3
R_2_4_4
R_2_4_5
R_2_4_6
R_2_4_7
R_2_4_8
R_2_4_9
R_2_5_0
R_2_6_0
R_2_6_1
R_2_6_2
R_2_6_3
R_2_6_4
R_2_7_0
R_2_7_1
R_2_7_2
R_2_7_3
R_2_7_4
R_2_7_5
R_2_8_0
R_2_8_1
R_2_8_2
R_2_8_3
R_2_8_4
R_2_8_5
R_2_9_0
V1990307
V19981122
V19981231
V19990109
V19990425
V19990626
V19990709
V19990728
V19991013
V1_0
V1_1
V20000512
beta2
beta3
beta4
jclark-orig
libexpat-alpha-1
sourceforge_init
start

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-118370.json"
vanir_signatures
[
    {
        "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"
        }
    }
]
vanir_signatures_modified
"2026-11-04T07:06:13Z"