# CVE-2026-139881: libexpat 2.2.3 through 2.11.0 Insufficient Entropy via /dev/urandom Short Read

- Severity: Medium 6.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 43% of CVEs (2026-12-01)
- Published: 2026-11-30T16:20:39.076Z
- Modified: 2026-12-01T22:17:58.233Z
- Weaknesses: CWE-331
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- libexpat libexpat: from 2.2.3 up to 2.11.0

## Every score

- VulnCheck: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/libexpat/libexpat/pull/1542> (issue-tracking, patch)
- <https://github.com/libexpat/libexpat/blob/R_2_11_0/expat/lib/random_dev_urandom.c#L47-L74> (technical-description)
- <https://github.com/libexpat/libexpat/blob/R_2_11_0/expat/lib/xmlparse.c#L1166-L1190> (technical-description)
- <https://www.vulncheck.com/advisories/libexpat-2.2.3-through-2.11.0-insufficient-entropy-via-dev-urandom-short-read> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-139881](https://www.cve.org/CVERecord?id=CVE-2026-139881), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-139881](https://nvd.nist.gov/vuln/detail/CVE-2026-139881), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-139881 · Whole record: https://cve.day/CVE-2026-139881.json · Rebuilt by cve.day 2026-12-01T22:32:12.973Z
