CVE-2026-137068: libxml2 through 2.15.4 Use-After-Free in xmlFreeNode via reader->faketext
libxml2 through 2.15.4 contains a heap use-after-free vulnerability that allows attackers to crash applications by triggering xmlFreeNode on a stale reader->faketext node after xmlTextReader reuse. Attackers can supply XML containing a namespace declaration to applications that read its value and reuse the reader, causing a freed document's dictionary read and process crash.
Affected Software
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications using libxml2 through 2.15.4 are exposed when they process attacker-supplied XML, read the value of a namespace declaration, and then reuse the XML reader.
What must an attacker provide to trigger the crash?
The attacker must supply XML containing a namespace declaration. Exploitation also depends on the application reading that declaration's value and reusing the reader afterward.
How can I determine whether an application is affected?
Check whether it uses libxml2 through version 2.15.4 and whether its XML-processing path reads namespace declaration values with an XML reader that is subsequently reused. A crash may occur when the reused reader accesses a dictionary from a freed document.