cbcvebase.

Xmlsoft Libxml2 vulnerabilities

135 known vulnerabilities affecting xmlsoft/libxml2.

Total CVEs
135
CISA KEV
0
Public exploits
8
Exploited in wild
2
Severity breakdown
CRITICAL17HIGH55MEDIUM56LOW6UNKNOWN1

Vulnerabilities

Page 3 of 7
CVE-2026-11979P3HIGHCVSS 7.8≤ 2.15.32026-06-29
CVE-2026-11979 [HIGH] CWE-121 CVE-2026-11979: libxml2 is vulnerable to multiple stack-based buffer overflows in the xmlcatalog utility when runnin libxml2 is vulnerable to multiple stack-based buffer overflows in the xmlcatalog utility when running in --shell mode. The usershell() function processes user input using fixed-size stack buffers without proper bounds checking. By supplying an overly long input line, an attacker can overflow internal buffers (command, arg, and argv) during input parsi
nvd
CVE-2025-24928P3HIGHCVSS 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.
nvdosv
CVE-2017-16932P3HIGHCVSS 7.5≤ 2.9.42017-11-23
CVE-2017-16932 [HIGH] CWE-835 CVE-2017-16932: parser.c in libxml2 before 2.9.5 does not prevent infinite recursion in parameter entities. parser.c in libxml2 before 2.9.5 does not prevent infinite recursion in parameter entities.
nvdosv
CVE-2017-0663P3HIGHCVSS 7.8≥ 0, < 2.9.4+dfsg1-3.12017-06-14
CVE-2017-0663 [HIGH] CVE-2017-0663: A remote code execution vulnerability in libxml2 could enable an attacker using a specially crafted file to execute arbitrary code within the context A remote code execution vulnerability in libxml2 could enable an attacker using a specially crafted file to execute arbitrary code within the context of an unprivileged process. This issue is rated as High due to the possibility of remote code execution in an application that uses this library. Product: Android.
osv
CVE-2016-1762P3HIGHCVSS 8.1fixed in 2.9.42016-03-24
CVE-2016-1762 [HIGH] CWE-119 CVE-2016-1762: The xmlNextChar function in libxml2 before 2.9.4 allows remote attackers to cause a denial of servic The xmlNextChar function in libxml2 before 2.9.4 allows remote attackers to cause a denial of service (heap-based buffer over-read) via a crafted XML document.
nvdosv
CVE-2024-25062P3HIGHCVSS 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.
nvdosv
CVE-2015-8710P3CRITICALCVSS 9.8fixed in 2.9.32016-04-11
CVE-2015-8710 [CRITICAL] CWE-119 CVE-2015-8710: The htmlParseComment function in HTMLparser.c in libxml2 allows attackers to obtain sensitive inform The htmlParseComment function in HTMLparser.c in libxml2 allows attackers to obtain sensitive information, cause a denial of service (out-of-bounds heap memory access and application crash), or possibly have unspecified other impact via an unclosed HTML comment.
nvdosv
CVE-2017-9050P3HIGHCVSS 7.5v2.9.42017-05-18
CVE-2017-9050 [HIGH] CVE-2017-9050: libxml2 20904-GITv2.9.4-16-g0741801 is vulnerable to a heap-based buffer over-read in the xmlDictAdd libxml2 20904-GITv2.9.4-16-g0741801 is vulnerable to a heap-based buffer over-read in the xmlDictAddString function in dict.c. This vulnerability causes programs that use libxml2, such as PHP, to crash. This vulnerability exists because of an incomplete fix for CVE-2016-1839.
nvdosv
CVE-2015-6838P3HIGHCVSS 7.5≤ 2.9.12016-05-16
CVE-2015-6838 [HIGH] CVE-2015-6838: The xsl_ext_function_php function in ext/xsl/xsltprocessor.c in PHP before 5.4.45, 5.5.x before 5.5. The xsl_ext_function_php function in ext/xsl/xsltprocessor.c in PHP before 5.4.45, 5.5.x before 5.5.29, and 5.6.x before 5.6.13, when libxml2 before 2.9.2 is used, does not consider the possibility of a NULL valuePop return value before proceeding with a free operation after the principal argument loop, which allows remote attackers to cause a denial of service
nvd
CVE-2025-32415P3HIGHCVSS 7.5fixed in 2.13.8≥ 2.14.0, < 2.14.22025-04-17
CVE-2025-32415 [HIGH] 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.
nvdosv
CVE-2008-4226P3CRITICALCVSS 10.0≥ 0, < 2.6.32.dfsg-52008-11-25
CVE-2008-4226 [CRITICAL] CVE-2008-4226: Integer overflow in the xmlSAX2Characters function in libxml2 2 Integer overflow in the xmlSAX2Characters function in libxml2 2.7.2 allows context-dependent attackers to cause a denial of service (memory corruption) or possibly execute arbitrary code via a large XML document.
osv
CVE-2016-9597P3HIGHCVSS 7.5v2.9.32018-07-30
CVE-2016-9597 [HIGH] CVE-2016-9597: It was found that Red Hat JBoss Core Services erratum RHSA-2016:2957 for CVE-2016-3705 did not actua It was found that Red Hat JBoss Core Services erratum RHSA-2016:2957 for CVE-2016-3705 did not actually include the fix for the issue found in libxml2, making it vulnerable to a Denial of Service attack due to a Stack Overflow. This is a regression CVE for the same issue as CVE-2016-3705.
nvd
CVE-2017-9047P3HIGHCVSS 7.5v2.9.4fixed in 2.12.10+1 more2017-05-18
CVE-2017-9047 [HIGH] CWE-119 CVE-2017-9047: A buffer overflow was discovered in libxml2 20904-GITv2.9.4-16-g0741801. The function xmlSnprintfEle A buffer overflow was discovered in libxml2 20904-GITv2.9.4-16-g0741801. The function xmlSnprintfElementContent in valid.c is supposed to recursively dump the element content definition into a char buffer 'buf' of size 'size'. The variable len is assigned strlen(buf). If the content->type is XML_ELEMENT_CONTENT_ELEMENT, then (i) the content->prefix is a
nvdosv
CVE-2015-6837P3HIGHCVSS 7.5≤ 2.9.12016-05-16
CVE-2015-6837 [HIGH] CVE-2015-6837: The xsl_ext_function_php function in ext/xsl/xsltprocessor.c in PHP before 5.4.45, 5.5.x before 5.5. The xsl_ext_function_php function in ext/xsl/xsltprocessor.c in PHP before 5.4.45, 5.5.x before 5.5.29, and 5.6.x before 5.6.13, when libxml2 before 2.9.2 is used, does not consider the possibility of a NULL valuePop return value before proceeding with a free operation during initial error checking, which allows remote attackers to cause a denial of service (NU
nvd
CVE-2022-49043P3HIGHCVSS 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.
nvdosv
CVE-2026-86139P3HIGHCVSS 7.8fixed in 2.15.42026-09-05
CVE-2026-86139 [HIGH] CWE-190 CVE-2026-86139: In libxml2 before 2.15.4, xmlURIEscapeStr in uri.c has an integer overflow. In libxml2 before 2.15.4, xmlURIEscapeStr in uri.c has an integer overflow.
nvd
CVE-2017-8872P3CRITICALCVSS 9.1v2.9.42017-05-10
CVE-2017-8872 [CRITICAL] CWE-125 CVE-2017-8872: The htmlParseTryOrFinish function in HTMLparser.c in libxml2 2.9.4 allows attackers to cause a denia The htmlParseTryOrFinish function in HTMLparser.c in libxml2 2.9.4 allows attackers to cause a denial of service (buffer over-read) or information disclosure.
nvdosv
CVE-2026-86143P3HIGHCVSS 7.3fixed in 2.15.42026-09-05
CVE-2026-86143 [HIGH] CWE-192 CVE-2026-86143: In xmlIO in libxml2 before 2.15.4, an inconsistency in xmlOutputWriteCallback and xmlBufUse causes n In xmlIO in libxml2 before 2.15.4, an inconsistency in xmlOutputWriteCallback and xmlBufUse causes negative lengths to reach write callbacks, aka a lack of a check for integer overflow before calling writecallback. This has security relevance for many types of uses of that length value within a callback.
nvd
CVE-2017-9049P3HIGHCVSS 7.5v2.9.42017-05-18
CVE-2017-9049 [HIGH] CWE-125 CVE-2017-9049: libxml2 20904-GITv2.9.4-16-g0741801 is vulnerable to a heap-based buffer over-read in the xmlDictCom libxml2 20904-GITv2.9.4-16-g0741801 is vulnerable to a heap-based buffer over-read in the xmlDictComputeFastKey function in dict.c. This vulnerability causes programs that use libxml2, such as PHP, to crash. This vulnerability exists because of an incomplete fix for libxml2 Bug 759398.
nvdosv
CVE-2013-1969P3HIGHCVSS 7.5v2.9.02013-04-25
CVE-2013-1969 [HIGH] CWE-399 CVE-2013-1969: Multiple use-after-free vulnerabilities in libxml2 2.9.0 and possibly other versions might allow con Multiple use-after-free vulnerabilities in libxml2 2.9.0 and possibly other versions might allow context-dependent attackers to cause a denial of service (crash) and possibly execute arbitrary code via vectors related to the (1) htmlParseChunk and (2) xmldecl_done functions, as demonstrated by a buffer overflow in the xmlBufGetInputBase function.
nvd
Xmlsoft Libxml2 vulnerabilities | cvebase