Description
libexpat through 2.10.0 contains an improper Unicode handling vulnerability in DEFINE_UTF16_TO_UTF16 conversion functions in xmltok.c that can split valid surrogate pairs when output space is limited. In XML_UNICODE builds parsing non-native byte order UTF-16 input, attackers can supply crafted documents that deliver lone high surrogates to character data and default handlers.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| libexpat | libexpat | ≤ 2.10.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 | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | expat | No fix yet | — |
Advisories 1
- WID-SEC-2026-4722 expat: Schwachstelle ermöglicht Manipulation von Dateien BSI CERT-Bund (WID) · Nov 22, 2026
References
- https://github.com/libexpat/libexpat/pull/1519 issue-tracking patch
- https://github.com/libexpat/libexpat/commit/702389c818cb402f2423fa998fa11907d621959f patch
- https://github.com/libexpat/libexpat/blob/R_2_10_0/expat/lib/xmltok.c technical-description
- VulnCheck Advisory: libexpat through 2.10.0 Isolated High Surrogate via UTF-16 Conversion third-party-advisory