MODERATE 5.9

CVE-2026-118370

libexpat through 2.9.0 Integer Overflow in storeAtts via attIndex and nPrefixes

Preliminary: affected artifacts were inferred from the fix commits of the source repository and have not been reviewed yet. They will be replaced by the reviewed advisory when it is published.

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)

ArtifactAffected versionsFixed in
com.viliussutkus89.licenseOnly » libexpatpreliminary
<= 2.9.0< 1bac53c4fc460a03cd9860f39501c7979f6750ae< 621cb2c78b253ee023a86bc91d6ddb048481c04c
1bac53c4fc460a03cd9860f39501c7979f6750ae, 621cb2c78b253ee023a86bc91d6ddb048481c04c

Blast radius

1affected artifacts
2affected versions
2dependent artifacts (est.)
8dependent versions

50% of the dependent artifacts (1) still pull an affected version in their latest release.

DepthDependent versions
Direct
2
2 hops
6

Most used dependents

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.