Libexpat
Expat before 2.8.5 Malformed UTF-16 Acceptance via Unchecked Surrogate
Expat before 2.8.5 fails to validate that a high surrogate in UTF-16 input is followed by a low surrogate, allowing malformed UTF-16 sequences to be accepted. Attackers can supply UTF-16 encoded XML containing lone high surrogates that consume the following code unit, causing Expat to pass unpaired surrogates to applications built with XML_UNICODE and to silently replace input characters in other builds.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.7high · scored by CNA · CWE-176
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
libexpat libexpat
- < 2.8.5
Fixed in 2.8.5
Mitigation
Upgrade libexpat to 2.8.5 or later.
References
- Patch github.com/libexpat/libexpat/pull/1282
- Patch github.com/libexpat/libexpat/commit/ff6e1d7e75…
- Release notes github.com/libexpat/libexpat/releases/tag/R_2_…
1 more
- Vendor advisory blog.hartwork.org/posts/expat-2-8-5-released
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.