Use-after-free in Lxml - #VU170754

 

Use-after-free in Lxml - #VU170754

Published: November 27, 2026


Vulnerability identifier: #VU170754
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service through heap corruption.

The vulnerability exists due to a heap use-after-free in lxml's iterparse() and XMLPullParser APIs when failed internal entity expansion frees nodes that are still referenced by queued events. A remote attacker can supply malformed XML to cause a denial of service when the application reads or clears a freed node, with clearing potentially triggering a double free.


Affected software

Lxml

Remediation

Install security update from vendor's website.

Lxml - update to 6.2.0

External References

Related Security Bulletins