libexpat 2.11.0 fixes three vulnerabilities
One fix stops an overread that requires XML_SetUnknownEncodingHandler; another concerns xmlwf.
Out-of-bounds read in libexpat unknown encodings
libexpat through 2.10.0 has an out-of-bounds read in unknown_toUtf8() and unknown_toUtf16() in xmltok.c when an application has registered an unknown encoding. A remote attacker can send an XML document that ends in a truncated multibyte sequence so the convert callback reads past the parse buffer. That can leak adjacent memory or crash the process. Applications that register custom encodings and parse untrusted XML are affected.
What to do: Upgrade libexpat to 2.11.0, which fixes this issue.
| Product | Affected | Fixed in |
|---|---|---|
| libexpat | through 2.10.0 | 2.11.0 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
libexpat through 2.10.0 contains an out-of-bounds read vulnerability in unknown_toUtf8() and unknown_toUtf16() in xmltok.c when handling application-registered unknown encodings. Attackers can supply a document ending in a truncated multibyte sequence so the convert callback reads past the parse buffer, leaking adjacent memory or crashing applications.
One fix stops an overread that requires XML_SetUnknownEncodingHandler; another concerns xmlwf.
Today 1.4K readers · 1.8K views · 221 reads · all time 220K views