libexpat 2.2.3 through 2.11.0 Insufficient Entropy via /dev/urandom Short Read
- State
- Published
- Severity
- 6.3 Medium
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
libexpat 2.2.3 through 2.11.0 contains an insufficient entropy vulnerability in writeRandomBytes_dev_urandom() that falls back to a predictable hash salt after short reads. Attackers can craft XML documents with names colliding in the parser's hash tables, causing hash flooding and excessive CPU consumption.
| Product | Versions |
|---|---|
| libexpat libexpat | 2.2.3 through 2.11.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.3 Medium | VulnCheck | |
| 3.1 | 3.7 Low | VulnCheck |
Weaknesses
- CWE-331 Insufficient Entropy
References
- https://github.com/libexpat/libexpat/pull/1542Issue TrackerPatch
- https://github.com/libexpat/libexpat/blob/R_2_11_0/expat/lib/random_dev_urandom.c#L47-L74Technical Details
- https://github.com/libexpat/libexpat/blob/R_2_11_0/expat/lib/xmlparse.c#L1166-L1190Technical Details
- VulnCheck Advisory: libexpat 2.2.3 through 2.11.0 Insufficient Entropy via /dev/urandom Short ReadThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.