Skip to content
NewA calmer, faster ZeroHour

CVE-2026-124317

Out-of-bounds read in libexpat unknown encodings

CVSS 4.0
6.3 medium
EPSS
—
Published
·
Modified
Analyze CVE-2026-124317 with Vani AIImpact, affected versions, exploitation status, mitigations and detection

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.

ProductAffectedFixed in
libexpatthrough 2.10.02.11.0
Estimated exposure
No basis for an estimate.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description · NVD

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.

Weakness
CWE-126
Vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

1 story