Double free in Lxml - #VU170753

 

Double free in Lxml - #VU170753

Published: November 27, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to corrupt parser memory and cause a denial of service.

The vulnerability exists due to improper memory ownership in lxml's XMLPullParser and iterparse event handling when releasing a processing instruction or comment event prematurely frees the document's external DTD subset. A remote attacker can supply crafted XML to an application configured to load external DTDs and collect these events to trigger a double free during document cleanup, a use-after-free read during DTD inspection, or a crash during validation.


Affected software

Lxml

Remediation

Install security update from vendor's website.

Lxml - update to 6.2.0

External References

Related Security Bulletins