Description
libexpat through 2.9.0 contains a NULL pointer dereference vulnerability in externalEntityInitProcessor2() in lib/xmlparse.c that mishandles the XML_TOK_NONE token from empty input. Attackers who control stream chunking can force an empty non-final first parse on an external entity subparser, causing a later parse to crash the application.
Metrics
CVSS 3.1 7.5/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| libexpat | libexpat | <= 2.9.0 |
References
- https://github.com/libexpat/libexpatProduct
- https://github.com/libexpat/libexpat/blob/a76b1174c1ea52abb639a4c69d52b630a8a106a2/expat/lib/xmlparse.c#L3468-L3510Product
- https://github.com/libexpat/libexpat/commit/7b0d50e4b1d16fafd55876260701e04279a7489dPatch
- https://github.com/libexpat/libexpat/pull/1444Patch
- https://www.vulncheck.com/advisories/libexpat-through-2.9.0-null-pointer-dereference-via-external-entity-subparserPatch, Vendor Advisory
Timeline
- Published
- Oct 28, 2026
- Last modified
- Nov 5, 2026
- NVD status
- Analyzed