
Cloud Vulnerability DB
A community-led vulnerabilities database
A use-after-free vulnerability was discovered in the xmlSetTreeDoc() function of the libxml2 XML parsing library. The vulnerability (CVE-2025-12863) was disclosed on November 7, 2025. The flaw affects the namespace handling logic when XML nodes are moved between documents. This vulnerability impacts applications using the libxml2 library for XML processing (NVD, Red Hat).
The vulnerability occurs in the xmlSetTreeDoc() function when XML nodes with namespaces are moved between documents using xmlAddChild() or xmlReplaceNode(). The internal function xmlNodeSetDoc() updates the node's document pointer but fails to properly handle namespace references, causing a namespace pointer to remain linked to freed memory when the original document is destroyed. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, indicating it is network-accessible with low attack complexity and requires no privileges or user interaction (Snyk).
When exploited, the vulnerability can lead to a use-after-free condition during subsequent operations that access the namespace, such as serialization via xmlDocDumpMemory(). This can result in application crashes and denial of service conditions. The vulnerability primarily affects the availability of the system, with no direct impact on confidentiality or integrity (NVD, Red Hat Bugzilla).
A fix has been released for some versions of libxml2. However, for CentOS 7, there is currently no fixed version available. Users are advised to monitor vendor notifications for security updates and patch availability (Snyk).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."