Description
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.
Published: 2026-11-07
Score: 6.3 Medium
EPSS: n/a
KEV: No
Impact: Out-of-bounds read enabling memory disclosure or crash
Action: Patch
AI Analysis

Impact

Libexpat 2.10.0 and earlier contain an out-of-bounds read vulnerability (CWE-126) in the unknown_toUtf8() and unknown_toUtf16() functions within xmltok.c, triggered when processing application-registered unknown encodings. An attacker can supply an XML document that ends with a truncated multibyte sequence; the conversion callback then reads past the bounds of the parse buffer, potentially leaking adjacent memory contents or causing the host application to crash.

Affected Systems

The affected products are libexpat from the libexpat project, specifically versions 2.10.0 and any earlier releases.

Risk and Exploitability

The CVSS score of 6.3 indicates medium severity, and no EPSS score is available, suggesting a low to moderate exploitation likelihood. The vulnerability is not listed in the CISA KEV catalog. An exploit can be achieved by feeding malicious XML input that contains a truncated multibyte sequence for an application-registered unknown encoding; the out-of-bounds read can reveal memory data or deny service. Given that libexpat is used to parse XML from potentially untrusted sources, remote exploitation is feasible if the library is exposed to external data. Overall risk is moderate, with the primary impact being memory disclosure or crash, and mitigation through patching is strongly advised.

Generated by OpenCVE AI on November 7, 2026 at 16:20 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libexpat to a fixed version newer than 2.10.0.
  • If upgrading is not immediately possible, reconfigure applications to disallow application-registered unknown encodings or enforce strict validation to accept only known safe encodings.
  • Implement input validation or length checks on XML streams to reject documents that terminate with malformed or truncated multibyte sequences before they reach libexpat.

Generated by OpenCVE AI on November 7, 2026 at 16:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 07 Nov 2026 14:30:00 +0000

Type Values Removed Values Added
Description 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.
Title libexpat through 2.10.0 Out-of-Bounds Read via unknown_toUtf8 and unknown_toUtf16
First Time appeared Libexpat Project
Libexpat Project libexpat
Weaknesses CWE-126
CPEs cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:*
Vendors & Products Libexpat Project
Libexpat Project libexpat
References
Metrics cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L'}

cvssV4_0

{'score': 6.3, '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'}


Subscriptions

Libexpat Project Libexpat
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-07T14:17:57.180Z

Reserved: 2026-11-07T12:27:50.865Z

Link: CVE-2026-124317

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-11-07T15:17:16.080

Modified: 2026-11-07T15:17:16.220

Link: CVE-2026-124317

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-07T16:30:14Z

Weaknesses