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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| libexpat | libexpat | 2.2.3 – ≤ 2.11.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | expat | No fix yet | — |
| Debian 13 | expat | No fix yet | — |
| Debian 12 | expat | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | tdom +6 | No fix yet | — |
| Ubuntu 26.04 LTS | tdom +5 | No fix yet | — |
| Ubuntu 24.04 LTS | tdom +4 | No fix yet | — |
| Ubuntu 22.04 LTS | tdom +5 | No fix yet | — |
| Ubuntu 20.04 LTS | tdom +4 | No fix yet | — |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | gdcm +7 | No fix yet | — |
| Ubuntu 16.04 LTS | gdcm +6 | No fix yet | — |
| Ubuntu Pro 26.04 LTS | swish-e | No fix yet | — |
| Ubuntu Pro 24.04 LTS | swish-e +2 | No fix yet | — |
| Ubuntu Pro 22.04 LTS | swish-e +2 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | expat +3 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | coin3 +4 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | vtk +8 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | vtk +4 | No fix yet | — |
Advisories 1
- WID-SEC-2026-4894 expat: Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Nov 30, 2026
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
- VulnCheck Advisory: libexpat 2.2.3 through 2.11.0 Insufficient Entropy via /dev/urandom Short Read third-party-advisory