Cyber Resilience

CVE-2026-56131

Memory Safety in Libexpat Project Libexpat ≤ 2.8.2

Published
19 June 2026
Modified
23 June 2026
Patch / advisory
CVSS Score v3.1 4.9
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS Score 0.0014 3th percentile
Risk Priority 35 floored blend · peak EPSS

Summary

CVE-2026-56131 is a medium-severity Use After Free (CWE-416) vulnerability in Libexpat Project Libexpat. Its CVSS base score is 4.9 (Medium).

Operationally, ranked at the 3th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SI-2 (Flaw Remediation) and SI-16 (Memory Protection) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

libexpat before 2.8.2 lacks handler call depth tracking for calls to XML_ResumeParser from within handlers in cases of a policy violation. Thus, a use-after-free can occur (similar to the CVE-2026-50219 situation).

CWE(s)

Related Threats

MITRE ATT&CK Enterprise TechniquesAI

Insufficient information to map techniques.
Confidence: LOW · MITRE ATT&CK Enterprise v19.0

CVEs Like This One

CVE-2026-50219Same product: Libexpat Project Libexpat
CVE-2026-56412Same product: Libexpat Project Libexpat
CVE-2025-1916Shared CWE-416
CVE-2025-1884Shared CWE-416
CVE-2024-56554Shared CWE-416
CVE-2026-9114Shared CWE-416
CVE-2023-35693Shared CWE-416
CVE-2023-42104Shared CWE-416
CVE-2021-21206Shared CWE-416
CVE-2024-47415Shared CWE-416

Affected Assets

libexpat project
libexpat
≤ 2.8.2

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)
  • SI-2 Flaw Remediation
  • SI-7 Software, Firmware, and Information Integrity
  • SI-16 Memory Protection
Detect
Catch it (NIST detect / respond)
  • SI-7 Software, Firmware, and Information Integrity
Harden
Shrink the surface (DISA STIG)
  • 3 hardening rules · 3 OS baselines
Validate
Prove the fix (OWASP ASVS)
  • V1.4.3

Mitigating Controls (NIST 800-53 r5) AI

prevent

Directly requires applying the vendor fix (libexpat >= 2.8.2) that adds the missing handler-call-depth tracking and eliminates the use-after-free.

preventdetect

Requires integrity verification of software/firmware, enabling detection or blocking of an unpatched libexpat binary that still contains the flawed XML_ResumeParser path.

prevent

Implements memory-protection mechanisms that can block or contain exploitation of the use-after-free condition triggered via crafted XML handler resumption.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly incorporate memory-safety tooling and reviews that prevent most use-after-free defects.

ID.RA-01 partial match
prevents

Vulnerability identification processes can discover use-after-free issues via scanning or analysis but do not prevent their introduction.

PR.PS-02 partial match
prevents

Routine patching removes known use-after-free instances after they have been introduced in released software.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

detects

Security testing in development can detect use-after-free bugs before release.

prevents

Secure SDLC mandates memory-safety practices that reduce use-after-free defects.

prevents

Application security requirements can specify memory-management rules that mitigate use-after-free.

prevents

Secure architecture principles include memory-safety design choices that limit use-after-free exposure.

prevents

Secure coding standards directly prescribe avoidance of use-after-free patterns.

prevents

Change-management processes help ensure memory-safety fixes are deployed consistently.

References