CVE-2026-56405

libexpat: libexpat: Information disclosure and arbitrary code execution via integer overflow

Published Jun 21, 2026 CVSS 3.1 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
libexpat before 2.8.2 has an integer overflow in getAttributeId.

Analysis

AI-generated

Technical impact

libexpat before version 2.8.2 contains an integer overflow in the getAttributeId function, which can corrupt memory for malformed XML input. The overflow may result in a crash or denial of service, and while the CVE description does not indicate remote code execution, the corruption could be leveraged by a local attacker to destabilize services.

Affected Systems

The vulnerability affects the libexpat project’s libexpat library for all releases prior to 2.8.2. Any system using a pre‑2.8.2 build of this library is at risk.

Risk and Exploitability

With a CVSS score of 6.9, the risk is moderate. The EPSS score is not provided and the issue is not listed in the CISA KEV catalog, indicating no known active exploitation at the time of assessment. Attackers would need to supply crafted XML data to trigger the overflow, typically through local or elevated code that parses XML files. The impact is primarily denial of service unless coupled with additional vulnerabilities.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update libexpat to version 2.8.2 or later, which resolves the integer overflow
  • Restart any services that use libexpat after upgrading to ensure the new library is loaded
  • As a temporary measure, validate or limit XML input length or structure to reduce the likelihood of triggering the overflow until the update can be applied

Generated by OpenCVE AI on June 21, 2026 at 17:23 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-6404-1 expat security update
Ubuntu USN Ubuntu USN USN-8790-1 Expat vulnerabilities
Ubuntu USN Ubuntu USN USN-8872-1 libxmltok vulnerabilities
History
Type Values Removed Values Added
Title Integer Overflow in libexpat getAttributeId before 2.8.2 libexpat: libexpat: Information disclosure and arbitrary code execution via integer overflow
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Title Integer Overflow in libexpat getAttributeId before 2.8.2
Type Values Removed Values Added
Description libexpat before 2.8.2 has an integer overflow in getAttributeId.
First Time appeared Libexpat Project
Libexpat Project libexpat
Weaknesses CWE-190
CPEs cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:*
Vendors & Products Libexpat Project
Libexpat Project libexpat
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 10, 2026, 12:48 PM
Reserved
Jun 21, 2026, 3:47 PM
Status
Modified
Published
Jun 21, 2026, 4:16 PM
Modified
Nov 10, 2026, 1:19 PM
Severity
Moderate
Public date
Jun 21, 2026, 3:47 PM