All reports
Medium

libxml2: Use-after-free of ID and IDREF attributes

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-23308

Probability of exploitation in the next 30 days: 5.12%

FIRST EPSS · 2026-11-23

Description

valid.c in libxml2 before 2.9.13 has a use-after-free of ID and IDREF attributes.

A flaw was found in libxml2. A call to the xmlGetID function can return a pointer already freed when parsing an XML document with the XML_PARSE_DTDVALID option and without the XML_PARSE_NOENT option, resulting in a use-after-free issue.