Use-after-free in Lxml - #VU170751

 

Use-after-free in Lxml - #VU170751

Published: November 27, 2026


Vulnerability identifier: #VU170751
CSH Severity: Medium
CVSS v4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/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 corrupt memory and potentially influence control flow in certain XMLSec/XSLT integrations.

The vulnerability exists due to use of an uninitialized pointer in libxml2's xmlXPathLangFunction when the XPath context node is null, which can lead to an invalid free and use-after-free. A remote attacker can supply input to a consuming application that exposes the vulnerable XPath evaluation path to trigger memory corruption.


Affected software

Lxml

Remediation

Install security update from vendor's website.

Lxml - update to 6.2.0

External References

Related Security Bulletins