CVE-2026-32778

libexpat: libexpat: Denial of Service via NULL pointer dereference after out-of-memory condition

Published Mar 16, 2026 CVSS 3.1 · 2.9 Low EPSS < 1% KEV · Not listed
Description
libexpat before 2.7.5 allows a NULL pointer dereference in the function setContext on retry after an earlier ouf-of-memory condition.

Analysis

AI-generated

Technical impact

The vulnerability exists in libexpat versions prior to 2.7.5. A NULL pointer dereference is triggered in the setContext function when retrying after an earlier out‑of‑memory condition. This leads to a crash of the process that uses the library, resulting in a denial of service. The weakness is a Null Pointer Dereference, CWE‑476.

Affected Systems

The libexpat library from the libexpat project, in any application that links to it, is affected. All versions before 2.7.5 are vulnerable. This includes typical Linux distributions, embedded systems, and any third‑party software that bundles an older libexpat.

Risk and Exploitability

The CVSS score of 2.9 indicates low severity, and the EPSS score is below 1 %, meaning the likelihood of exploitation is very low. The vulnerability is not listed in the CISA KEV catalog. The attack vector is inferred to be local: an attacker or privileged user can supply a large XML document to trigger an out‑of‑memory condition and then cause the library to crash, leading to service interruption. Because it is a denial of service, it does not compromise confidentiality or integrity.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest libexpat release (2.7.5 or newer) via your package manager or rebuild from source.
  • Verify that the update is active in all affected applications.
  • Monitor logs for signs of out‑of‑memory incidents or unexpected process crashes and limit XML input size if a patch cannot be applied immediately.

Generated by OpenCVE AI on March 17, 2026 at 17:29 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-8790-1 Expat vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Libexpat Project
Libexpat Project libexpat
Vendors & Products Libexpat Project
Libexpat Project libexpat
Type Values Removed Values Added
Title libexpat: libexpat: Denial of Service via NULL pointer dereference after out-of-memory condition
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Description libexpat before 2.7.5 allows a NULL pointer dereference in the function setContext on retry after an earlier ouf-of-memory condition.
Weaknesses CWE-476
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:45 PM
Reserved
Mar 16, 2026, 7:02 AM
Status
Modified
Published
Mar 16, 2026, 2:19 PM
Modified
Nov 10, 2026, 1:19 PM
Severity
Moderate
Public date
Mar 16, 2026, 7:02 AM