CVE-2026-56412
libexpat: libexpat: Use-after-free vulnerability due to improper handling of XML CDATA sections
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · June 22, 2026
Updated · July 7, 2026
Description
A flaw was found in libexpat. This vulnerability, present in versions before 2.8.2, stems from improper handling of XML CDATA sections, where the library fails to adequately track the depth of handler calls. This can result in a 'use-after-free' error, a type of memory corruption that could allow an attacker to crash the application or potentially gain unauthorized control.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 4.9CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
CWE-825 · Expired Pointer Dereference