CVE-2026-72522

expat: libexpat: Denial of Service due to incorrect Unicode surrogate handling

Published Aug 10, 2026 CVSS 3.1 · 6.2 Medium EPSS < 1% KEV · Not listed
Description
libexpat before 2.8.3 has an out-of-bounds read and resultant infinite loop because low surrogates are treated the same as high surrogates during Unicode processing in the *_toUtf16 functions.

Analysis

AI-generated

Technical impact

The vulnerability arises when libexpat processes Unicode strings; low surrogate values are incorrectly treated as high surrogates during conversion in the *_toUtf16 functions. This misclassification triggers an out-of-bounds read and can result in an infinite loop, consuming CPU resources and exhausting service availability. The flaw is classified as CWE-125: Out‑of‑Bounds Read, and it mainly threatens system availability rather than confidentiality or integrity.

Affected Systems

All installations of the libexpat library prior to version 2.8.3 are affected. The issue is present in the core libexpat project and impacts any application or service that relies on this library for XML parsing or Unicode conversion, regardless of platform.

Risk and Exploitability

With a CVSS score of 6.2, the vulnerability presents a moderate severity. The EPSS score is not available, and the flaw is not listed in the CISA KEV catalog, suggesting that exploitation may be uncommon but not impossible. Attackers need to supply XML data containing low surrogate code points; such data could be delivered locally or over a network if the target application accepts untrusted XML. Once the malformed data is processed, the library enters an infinite loop, potentially exhausting CPU and causing a denial of service. No remote code execution or data exfiltration is possible, but the resulting service disruption can be critical in production environments.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libexpat to version 2.8.3 or later
  • Apply the upstream patch submitted in GitHub pull request #1296 to fix the Unicode handling bug
  • Validate or sanitize XML input to remove or reject low surrogate code points before passing data to libexpat

Generated by OpenCVE AI on August 10, 2026 at 04:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4765-1 expat security update
Debian DSA Debian DSA DSA-6446-1 expat security update
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title expat: libexpat: Denial of Service due to incorrect Unicode surrogate handling
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Description libexpat before 2.8.3 has an out-of-bounds read and resultant infinite loop because low surrogates are treated the same as high surrogates during Unicode processing in the *_toUtf16 functions.
First Time appeared Libexpat Project
Libexpat Project libexpat
Weaknesses CWE-125
CPEs cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:*
Vendors & Products Libexpat Project
Libexpat Project libexpat
References
Metrics cvssV3_1

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 10, 2026, 12:49 PM
Reserved
Aug 10, 2026, 3:28 AM
Status
Deferred
Published
Aug 10, 2026, 4:16 AM
Modified
Nov 10, 2026, 1:19 PM
Severity
Moderate
Public date
Aug 10, 2026, 3:28 AM