Xmlsoft Libxml2 vulnerabilities
99 known vulnerabilities affecting xmlsoft/libxml2.
Total CVEs
99
CISA KEV
0
Public exploits
7
Exploited in wild
0
Severity breakdown
CRITICAL12HIGH40MEDIUM46LOW1
Vulnerabilities
Page 1 of 5
CVE-2025-9714MEDIUMCVSS 5.5fixed in 2.10.02025-09-10
CVE-2025-9714 [MEDIUM] CWE-674 CVE-2025-9714: Uncontrolled recursion in XPath evaluation in libxml2 up to and including version 2.9.14 allows a lo
Uncontrolled recursion in XPath evaluation in libxml2 up to and including version 2.9.14 allows a local attacker to cause a stack overflow via crafted expressions. XPath processing functions `xmlXPathRunEval`, `xmlXPathCtxtCompile`, and `xmlXPathEvalExpr` were resetting recursion depth to zero before making potentially recursive calls. When such funct
nvd
CVE-2025-6021HIGHCVSS 7.5fixed in 2.14.42025-06-12
CVE-2025-6021 [HIGH] CWE-787 CVE-2025-6021: A flaw was found in libxml2's xmlBuildQName function, where integer overflows in buffer size calcula
A flaw was found in libxml2's xmlBuildQName function, where integer overflows in buffer size calculations can lead to a stack-based buffer overflow. This issue can result in memory corruption or a denial of service when processing crafted input.
nvd
CVE-2025-32415HIGHCVSS 7.5fixed in 2.13.8≥ 2.14.0, < 2.14.22025-04-17
CVE-2025-32415 [LOW] CWE-1284 CVE-2025-32415: In libxml2 before 2.13.8 and 2.14.x before 2.14.2, xmlSchemaIDCFillNodeTables in xmlschemas.c has a
In libxml2 before 2.13.8 and 2.14.x before 2.14.2, xmlSchemaIDCFillNodeTables in xmlschemas.c has a heap-based buffer under-read. To exploit this, a crafted XML document must be validated against an XML schema with certain identity constraints, or a crafted XML schema must be used.
cvelistv5nvd
CVE-2025-32414HIGHCVSS 7.5fixed in 2.13.8≥ 2.14.0, < 2.14.22025-04-08
CVE-2025-32414 [MEDIUM] CWE-393 CVE-2025-32414: In libxml2 before 2.13.8 and 2.14.x before 2.14.2, out-of-bounds memory access can occur in the Pyth
In libxml2 before 2.13.8 and 2.14.x before 2.14.2, out-of-bounds memory access can occur in the Python API (Python bindings) because of an incorrect return value. This occurs in xmlPythonFileRead and xmlPythonFileReadRaw because of a difference between bytes and characters.
cvelistv5nvd
CVE-2024-56171CRITICALCVSS 9.8fixed in 2.12.10≥ 2.13.0, < 2.13.62025-02-18
CVE-2024-56171 [HIGH] CWE-416 CVE-2024-56171: libxml2 before 2.12.10 and 2.13.x before 2.13.6 has a use-after-free in xmlSchemaIDCFillNodeTables a
libxml2 before 2.12.10 and 2.13.x before 2.13.6 has a use-after-free in xmlSchemaIDCFillNodeTables and xmlSchemaBubbleIDCNodeTables in xmlschemas.c. To exploit this, a crafted XML document must be validated against an XML schema with certain identity constraints, or a crafted XML schema must be used.
cvelistv5nvd
CVE-2025-27113HIGHCVSS 7.5fixed in 2.12.10≥ 2.13.0, < 2.13.62025-02-18
CVE-2025-27113 [LOW] CWE-476 CVE-2025-27113: libxml2 before 2.12.10 and 2.13.x before 2.13.6 has a NULL pointer dereference in xmlPatMatch in pat
libxml2 before 2.12.10 and 2.13.x before 2.13.6 has a NULL pointer dereference in xmlPatMatch in pattern.c.
cvelistv5nvd
CVE-2025-24928HIGHCVSS 7.7fixed in 2.12.10≥ 2.13.0, < 2.13.62025-02-18
CVE-2025-24928 [HIGH] CVE-2025-24928: libxml2 before 2.12.10 and 2.13.x before 2.13.6 has a stack-based buffer overflow in xmlSnprintfElem
libxml2 before 2.12.10 and 2.13.x before 2.13.6 has a stack-based buffer overflow in xmlSnprintfElements in valid.c. To exploit this, DTD validation must occur for an untrusted document or untrusted DTD. NOTE: this is similar to CVE-2017-9047.
cvelistv5nvd
CVE-2022-49043HIGHCVSS 7.8fixed in 2.11.0≥ 2.0.0, < 2.11.02025-01-26
CVE-2022-49043 [HIGH] CWE-416 CVE-2022-49043: xmlXIncludeAddNode in xinclude.c in libxml2 before 2.11.0 has a use-after-free.
xmlXIncludeAddNode in xinclude.c in libxml2 before 2.11.0 has a use-after-free.
cvelistv5nvd
CVE-2024-40896CRITICALCVSS 9.1≥ 2.11.0, < 2.11.9≥ 2.12.0, < 2.12.9+1 more2024-12-23
CVE-2024-40896 [CRITICAL] CWE-611 CVE-2024-40896: In libxml2 2.11 before 2.11.9, 2.12 before 2.12.9, and 2.13 before 2.13.3, the SAX parser can produc
In libxml2 2.11 before 2.11.9, 2.12 before 2.12.9, and 2.13 before 2.13.3, the SAX parser can produce events for external entities even if custom SAX handlers try to override entity content (by setting "checked"). This makes classic XXE attacks possible.
nvd
CVE-2024-34459HIGHCVSS 7.5fixed in 2.11.8≥ 2.12.0, < 2.12.72024-05-14
CVE-2024-34459 [HIGH] CWE-122 CVE-2024-34459: An issue was discovered in xmllint (from libxml2) before 2.11.8 and 2.12.x before 2.12.7. Formatting
An issue was discovered in xmllint (from libxml2) before 2.11.8 and 2.12.x before 2.12.7. Formatting error messages with xmllint --htmlout can result in a buffer over-read in xmlHTMLPrintFileContext in xmllint.c.
nvd
CVE-2024-25062HIGHCVSS 7.5fixed in 2.11.7≥ 2.12.0, < 2.12.52024-02-04
CVE-2024-25062 [HIGH] CWE-416 CVE-2024-25062: An issue was discovered in libxml2 before 2.11.7 and 2.12.x before 2.12.5. When using the XML Reader
An issue was discovered in libxml2 before 2.11.7 and 2.12.x before 2.12.5. When using the XML Reader interface with DTD validation and XInclude expansion enabled, processing crafted XML documents can lead to an xmlValidatePopElement use-after-free.
nvd
CVE-2023-45322MEDIUMCVSS 6.5≤ 2.11.52023-10-06
CVE-2023-45322 [MEDIUM] CWE-416 CVE-2023-45322: libxml2 through 2.11.5 has a use-after-free that can only occur after a certain memory allocation fa
libxml2 through 2.11.5 has a use-after-free that can only occur after a certain memory allocation fails. This occurs in xmlUnlinkNode in tree.c. NOTE: the vendor's position is "I don't think these issues are critical enough to warrant a CVE ID ... because an attacker typically can't control when memory allocations fail."
nvd
CVE-2023-39615MEDIUMCVSS 6.5v2.11.02023-08-29
CVE-2023-39615 [MEDIUM] CWE-119 CVE-2023-39615: Xmlsoft Libxml2 v2.11.0 was discovered to contain an out-of-bounds read via the xmlSAX2StartElement(
Xmlsoft Libxml2 v2.11.0 was discovered to contain an out-of-bounds read via the xmlSAX2StartElement() function at /libxml2/SAX2.c. This vulnerability allows attackers to cause a Denial of Service (DoS) via supplying a crafted XML file. NOTE: the vendor's position is that the product does not support the legacy SAX1 interface with custom callbacks; t
nvd
CVE-2023-29469MEDIUMCVSS 6.5fixed in 2.10.42023-04-24
CVE-2023-29469 [MEDIUM] CWE-415 CVE-2023-29469: An issue was discovered in libxml2 before 2.10.4. When hashing empty dict strings in a crafted XML d
An issue was discovered in libxml2 before 2.10.4. When hashing empty dict strings in a crafted XML document, xmlDictComputeFastKey in dict.c can produce non-deterministic values, leading to various logic and memory errors, such as a double free. This behavior occurs because there is an attempt to use the first byte of an empty string, and any value
nvd
CVE-2023-28484MEDIUMCVSS 6.5fixed in 2.10.42023-04-24
CVE-2023-28484 [MEDIUM] CWE-476 CVE-2023-28484: In libxml2 before 2.10.4, parsing of certain invalid XSD schemas can lead to a NULL pointer derefere
In libxml2 before 2.10.4, parsing of certain invalid XSD schemas can lead to a NULL pointer dereference and subsequently a segfault. This occurs in xmlSchemaFixupComplexType in xmlschemas.c.
nvd
CVE-2022-40304HIGHCVSS 7.8fixed in 2.10.32022-11-23
CVE-2022-40304 [HIGH] CWE-415 CVE-2022-40304: An issue was discovered in libxml2 before 2.10.3. Certain invalid XML entity definitions can corrupt
An issue was discovered in libxml2 before 2.10.3. Certain invalid XML entity definitions can corrupt a hash table key, potentially leading to subsequent logic errors. In one case, a double-free can be provoked.
nvd
CVE-2022-40303HIGHCVSS 7.5fixed in 2.10.32022-11-23
CVE-2022-40303 [HIGH] CWE-190 CVE-2022-40303: An issue was discovered in libxml2 before 2.10.3. When parsing a multi-gigabyte XML document with th
An issue was discovered in libxml2 before 2.10.3. When parsing a multi-gigabyte XML document with the XML_PARSE_HUGE parser option enabled, several integer counters can overflow. This results in an attempt to access an array at a negative 2GB offset, typically leading to a segmentation fault.
nvd
CVE-2016-3709MEDIUMCVSS 6.1≥ 2.9.2, < 2.9.112022-07-28
CVE-2016-3709 [MEDIUM] CWE-79 CVE-2016-3709: Possible cross-site scripting vulnerability in libxml after commit 960f0e2.
Possible cross-site scripting vulnerability in libxml after commit 960f0e2.
nvd
CVE-2022-29824MEDIUMCVSS 6.5fixed in 2.9.142022-05-03
CVE-2022-29824 [MEDIUM] CWE-190 CVE-2022-29824: In libxml2 before 2.9.14, several buffer handling functions in buf.c (xmlBuf*) and tree.c (xmlBuffer
In libxml2 before 2.9.14, several buffer handling functions in buf.c (xmlBuf*) and tree.c (xmlBuffer*) don't check for integer overflows. This can result in out-of-bounds memory writes. Exploitation requires a victim to open a crafted, multi-gigabyte XML file. Other software using libxml2's buffer functions, for example libxslt through 1.1.35, is af
nvd
CVE-2022-23308HIGHCVSS 7.5fixed in 2.9.132022-02-26
CVE-2022-23308 [HIGH] CWE-416 CVE-2022-23308: valid.c in libxml2 before 2.9.13 has a use-after-free of ID and IDREF attributes.
valid.c in libxml2 before 2.9.13 has a use-after-free of ID and IDREF attributes.
nvd
1 / 5Next →