SB2026112803 - Multiple vulnerabilities in Lxml
Published: November 28, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 4 vulnerabilities.
1) Use-after-free (CVE-ID: N/A)
CWE-ID: CWE-416 - Use After Free
CVSSv4: 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]
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.
2) Out-of-bounds read (CVE-ID: N/A)
CWE-ID: CWE-125 - Out-of-bounds read
CVSSv4: 8.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to crash the process and potentially disclose adjacent heap memory.
The vulnerability exists due to an out-of-bounds read in the incremental XML and HTML writers when scanning CDATA without adequately checking buffer boundaries. A remote attacker can supply malformed input that the application serializes as CDATA to cause a denial of service and potentially expose heap data in flushed output.
CWE-ID: CWE-415 - Double Free
CVSSv4: 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]
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.
4) Use-after-free (CVE-ID: N/A)
CWE-ID: CWE-416 - Use After Free
CVSSv4: 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]
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.
Remediation
Install update from vendor's website.
References
- https://github.com/lxml/lxml/security/advisories/GHSA-P8VP-2PG3-QF7W
- https://github.com/GNOME/libxml2/commit/aef94414c6ff31a6aef44e960b654b317c1f9d10
- https://github.com/lxml/lxml/security/advisories/GHSA-23P9-V872-36P9
- https://github.com/lxml/lxml/security/advisories/GHSA-27MW-M39X-FM32
- https://github.com/lxml/lxml/security/advisories/GHSA-59QX-3JJV-X996