CVE-2026-24515

libexpat: libexpat null pointer dereference

Published Jan 23, 2026 CVSS 3.1 · 2.9 Low EPSS < 1% KEV · Not listed
Description
In libexpat before 2.7.4, XML_ExternalEntityParserCreate does not copy unknown encoding handler user data.

Analysis

AI-generated

Technical impact

The vulnerability resides in libexpat, where the function XML_ExternalEntityParserCreate fails to copy user data for unknown encoding handlers, leading to a null pointer dereference. This flaw can cause an application to crash when processing XML input that specifies an unfamiliar encoding, resulting in a denial of service. The weakness is classified as CWE‑476, a null pointer dereference.

Affected Systems

All installations of the libexpat library older than version 2.7.4 are potentially affected. Applications that embed libexpat and invoke XML_ExternalEntityParserCreate—such as web servers, document processors, or other XML‑handling software—are at risk if they are linked against an unpatched library.

Risk and Exploitability

The CVSS score of 2.9 indicates a low severity impact, and the EPSS score of less than 1% shows a very low probability of exploitation at present. The vulnerability is not listed in the CISA KEV catalog, and no public exploits have been reported. Attackers would need to supply crafted XML content to trigger the crash, so an attacker must have the ability to influence input to the vulnerable parser.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libexpat to version 2.7.4 or later, which includes the null‑check fix.
  • If an upgrade is not immediately feasible, disable the use of XML_ExternalEntityParserCreate with unknown encoding handlers or turn off external entity parsing altogether.
  • Review the application’s XML processing pipeline for additional null‑dereference risks and apply input validation or configuration hardening as needed.

Generated by OpenCVE AI on April 18, 2026 at 03:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4807-1 expat security update
Debian DSA Debian DSA DSA-6404-1 expat security update
Ubuntu USN Ubuntu USN USN-8022-1 Expat vulnerabilities
Ubuntu USN Ubuntu USN USN-8022-2 Expat vulnerabilities
Ubuntu USN Ubuntu USN USN-8023-1 xmltok library vulnerabilities
History
Type Values Removed Values Added
Title libexpat: libexpat null pointer dereference
References
Metrics threat_severity

None

threat_severity

Low

Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description In libexpat before 2.7.4, XML_ExternalEntityParserCreate does not copy unknown encoding handler user data.
First Time appeared Libexpat Project
Libexpat Project libexpat
Weaknesses CWE-476
CPEs cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:*
Vendors & Products Libexpat Project
Libexpat Project libexpat
References
Metrics cvssV3_1

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 10, 2026, 12:43 PM
Reserved
Jan 23, 2026, 7:46 AM
Status
Modified
Published
Jan 23, 2026, 8:16 AM
Modified
Nov 10, 2026, 1:18 PM
Severity
Low
Public date
Jan 23, 2026, 7:46 AM