CVE-2026-118370
libexpat through 2.9.0 Integer Overflow in storeAtts via attIndex and nPrefixes
Description
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.viliussutkus89.licenseOnly » libexpatpreliminary | <= 2.9.0< 1bac53c4fc460a03cd9860f39501c7979f6750ae< 621cb2c78b253ee023a86bc91d6ddb048481c04c | 1bac53c4fc460a03cd9860f39501c7979f6750ae, 621cb2c78b253ee023a86bc91d6ddb048481c04c |
Blast radius
50% of the dependent artifacts (1) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 2 |
| 2 hops | 6 |
Most used dependents
- com.viliussutkus89.licenseOnly » pdf2htmlEX-dependency-tree1 usages
- com.viliussutkus89 » pdf2htmlex-android0 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | CVE record CVE-2026-118370 | github.com |
| Advisory | NVD CVE-2026-118370 | nvd.nist.gov |
| Advisory | advisories/libexpat-through-2.9.0-integer-overflow-in-storeatts-via-attindex-and-nprefixes | vulncheck.com |
| Fix | libexpat/libexpat commit 1bac53c | github.com |
| Fix | libexpat/libexpat commit 621cb2c | github.com |
| Fix | libexpat/libexpat pull request #1450 | github.com |
| Article | libexpat/libexpat xmlparse.c | github.com |
| Package | libexpat/libexpat | github.com |
