Use-After-Free in libexpat <2.8.2 (XML handler recursion)
CVE-2026-50219 Published on June 4, 2026

libexpat before 2.8.2 lacks handler call depth tracking for calls to XML_GetBuffer, XML_Parse, XML_ParseBuffer, XML_ParserFree, or XML_ParserReset from within handlers in cases of a policy violation. Thus, a use-after-free can occur,

NVD

Vulnerability Analysis

CVE-2026-50219 can be exploited with local system access, and does not require authorization privileges or user interaction. This vulnerability is consided to have a high level of attack complexity. The potential impact of an exploit of this vulnerability is considered to be low. considered to have a small impact on confidentiality and integrity and availability.

Attack Vector:
LOCAL
Attack Complexity:
HIGH
Privileges Required:
NONE
User Interaction:
NONE
Scope:
UNCHANGED
Confidentiality Impact:
LOW
Integrity Impact:
LOW
Availability Impact:
LOW

Weakness Type

What is a Dangling pointer Vulnerability?

Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code.

CVE-2026-50219 has been classified to as a Dangling pointer vulnerability or weakness.


Products Associated with CVE-2026-50219

Want to know whenever a new CVE is published for Libexpatproject Libexpat? stack.watch will email you.

 

Affected Versions

libexpat project libexpat:

Exploit Probability

EPSS
0.01%
Percentile
1.72%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.