Description
Expat through 2.8.3 contains a denial of service vulnerability caused by quadratic algorithmic complexity in the storeAtts() function in xmlparse.c, where processing N specified attributes with non-normalized values triggers an O(N^2) linear scan of elementType->defaultAtts to determine CDATA status. A remote unauthenticated attacker can supply a single well-formed XML document of a few megabytes to an application parsing untrusted XML to cause excessive CPU consumption, resulting in denial of service without requiring authentication, external entity resolution, or non-default parser options.
Severity (CVSS)
| Base score | 8.7 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-407 — Inefficient Algorithmic Complexity
Affected products
| Vendor | Product | Versions |
|---|---|---|
| libexpat project | libexpat | 0 to <=2.8.3 |
References
- https://github.com/libexpat/libexpat/pull/1321 (issue-tracking)
- https://www.vulncheck.com/advisories/expat-denial-of-service-via-storeatts-quadratic-complexity (third-party-advisory)
Generated from the official CVE List on 19 Aug 2026 07:05 UTC.