libexpat <=2.8.2 Use-After-Free via XML_TOK_DATA_CHARS in doCdataSection
CVE-2026-56412 Published on June 21, 2026

libexpat before 2.8.2 does not consider XML_TOK_DATA_CHARS in doCdataSection and thus lacks handler call depth tracking for various calls from within handlers in cases of a policy violation. Thus, a use-after-free can occur. NOTE: this issue exists because of an incomplete fix for CVE-2026-50219.

NVD

Vulnerability Analysis

CVE-2026-56412 is exploitable 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-56412 has been classified to as a Dangling pointer vulnerability or weakness.


Products Associated with CVE-2026-56412

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

 

Affected Versions

libexpat project libexpat: