VulnSea

libxml2 vulnerabilities

CVEs whose affected-version data names the libxml2 package. Each record lists the affected and patched versions; check a specific version with the dependency checker or POST /api/sbom.

50 CVEsRSS

CVE-2026-76781Medium· 5.5
1mo ago

A flaw was found in libxml2

A flaw was found in libxml2. A local user or an attacker providing a specially crafted XML catalog can trigger a NULL pointer dereference during XML catalog parsing. This occurs when a `nextCatalog` element lacks its mandatory `catalog` …

▾ SunlitRed Hat · libxml2-mainEPSS 0.17%via NVD
CVE-2026-74860High· 8.5
1mo ago

A flaw was found in libxml2 with Python bindings enabled

A flaw was found in libxml2 with Python bindings enabled. A remote attacker could exploit this vulnerability by providing a specially crafted XML document containing a Document Type Definition (DTD) with enumerated attribute values. This…

▾ TwilightRed Hat · libxml2EPSS 0.66%via NVD
CVE-2026-86144Medium· 5.6
1mo ago

In xinclude in libxml2 before 2.15.4, xmlXIncludeProcess and xmlXIncludeProcessTree do not propagate parseFlags

In xinclude in libxml2 before 2.15.4, xmlXIncludeProcess and xmlXIncludeProcessTree do not propagate parseFlags. This has security relevance for, for example, the XML_PARSE_NONET flag, if (without it) a custom resource loader accesses th…

▾ Sunlitxmlsoft · libxml2EPSS 0.19%via NVD
CVE-2026-86143Medium· 6.9
1mo ago

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

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 rele…

▾ Sunlitxmlsoft · libxml2EPSS 0.19%via NVD
CVE-2026-86142Medium· 6.9
1mo ago

In libxml2 before 2.15.4, there is a heap-based buffer overflow in xmlXPtrEvalXPtrPart because of xmlXPtrEval xpointer length saturation.

In libxml2 before 2.15.4, there is a heap-based buffer overflow in xmlXPtrEvalXPtrPart because of xmlXPtrEval xpointer length saturation.

▾ Sunlitxmlsoft · libxml2EPSS 0.16%via NVD
CVE-2026-86141Low· 2.9
1mo ago

xmlregexp in libxml2 before 2.15.4 has a NULL pointer dereference in xmlRegNewParserCtxt after a strdup failure, i.e., it does not calculate a string length after NULL checking.

xmlregexp in libxml2 before 2.15.4 has a NULL pointer dereference in xmlRegNewParserCtxt after a strdup failure, i.e., it does not calculate a string length after NULL checking.

▾ Sunlitxmlsoft · libxml2EPSS 0.17%via NVD
CVE-2026-86140High· 8.0
1mo ago

In libxml2 before 2.15.4, xmlSnprintfElements in valid.c has a strcat stack-based buffer overflow.

In libxml2 before 2.15.4, xmlSnprintfElements in valid.c has a strcat stack-based buffer overflow.

▾ Twilightxmlsoft · libxml2EPSS 0.16%via NVD
CVE-2026-86139Medium· 6.9
1mo ago

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.

▾ Sunlitxmlsoft · libxml2EPSS 0.17%via NVD
CVE-2026-86138Medium· 6.9
1mo ago

In libxml2 before 2.15.4, xmlDictAddQString in dict.c has an integer overflow and resultant heap-based buffer overflow.

In libxml2 before 2.15.4, xmlDictAddQString in dict.c has an integer overflow and resultant heap-based buffer overflow.

▾ Sunlitxmlsoft · libxml2EPSS 0.13%via NVD
CVE-2026-86137Low· 2.9
1mo ago

In libxml2 before 2.15.4, xmlFAParsePosCharGroup has an out-of-bounds read, aka an out-of-bounds read in the NXT macro in xmlregexp.

In libxml2 before 2.15.4, xmlFAParsePosCharGroup has an out-of-bounds read, aka an out-of-bounds read in the NXT macro in xmlregexp.

▾ Sunlitxmlsoft · libxml2EPSS 0.19%via NVD
CVE-2026-6732Medium· 6.5
6mo ago

A flaw was found in libxml2

A flaw was found in libxml2. This vulnerability occurs when the library processes a specially crafted XML Schema Definition (XSD) validated document that includes an internal entity reference. An attacker could exploit this by providing …

▾ Sunlitxmlsoft · libxml2EPSS 0.63%via NVD
CVE-2025-7425High· 7.8PoC
1y ago

A flaw was found in libxslt where the attribute type, atype, flags are modified in a way that corrupts internal memory management

A flaw was found in libxslt where the attribute type, atype, flags are modified in a way that corrupts internal memory management. When XSLT functions, such as the key() process, result in tree fragments, this corruption prevents the pro…

▾ MidnightGNOME · libxml2EPSS 0.44%via NVD
CVE-2025-6170Low· 2.5
1y ago

A flaw was found in the interactive shell of the xmllint command-line tool, used for parsing XML files

A flaw was found in the interactive shell of the xmllint command-line tool, used for parsing XML files. When a user inputs an overly long command, the program does not check the input size properly, which can cause it to crash. This issu…

▾ Sunlitredhat · jboss_core_servicesEPSS 0.32%via NVD
CVE-2025-49796Critical· 9.1
1y ago

A vulnerability was found in libxml2

A vulnerability was found in libxml2. Processing certain sch:name elements from the input XML file can trigger a memory corruption issue. This flaw allows an attacker to craft a malicious XML input file that can lead libxml to crash, res…

▾ MidnightRed Hat · libxml2EPSS 1.6%via NVD
CVE-2025-49795High· 7.5
1y ago

A NULL pointer dereference vulnerability was found in libxml2 when processing XPath XML expressions

A NULL pointer dereference vulnerability was found in libxml2 when processing XPath XML expressions. This flaw allows an attacker to craft a malicious XML input to libxml2, leading to a denial of service.

▾ TwilightGNOME · libxml2EPSS 0.59%via NVD
CVE-2025-49794Critical· 9.1
1y ago

A use-after-free vulnerability was found in libxml2

A use-after-free vulnerability was found in libxml2. This issue occurs when parsing XPath elements under certain circumstances when the XML schematron has the <sch:name path="..."/> schema elements. This flaw allows a malicious actor to …

▾ MidnightRed Hat · libxml2EPSS 0.83%via NVD
CVE-2025-6021High· 7.5PoC
1y ago

A flaw was found in libxml2's xmlBuildQName function, where integer overflows in buffer size calculations can lead to a stack-based buffer overflow

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 crafte…

▾ Midnightxmlsoft · libxml2EPSS 1.4%via NVD
CVE-2024-34459High· 7.5PoC
2y ago

An issue was discovered in xmllint (from libxml2) before 2.11.8 and 2.12.x before 2.12.7

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.

▾ Midnightxmlsoft · libxml2EPSS 1.8%via NVD
CVE-2024-25062High· 7.5
2y ago

An issue was discovered in libxml2 before 2.11.7 and 2.12.x before 2.12.5

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-…

▾ Twilightxmlsoft · libxml2EPSS 1.3%via NVD
CVE-2023-45322Medium· 6.5
3y ago

libxml2 through 2.11.5 has a use-after-free that can only occur after a certain memory allocation fails

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 …

▾ Sunlitxmlsoft · libxml2EPSS 0.97%via NVD
CVE-2023-39615Medium· 6.5PoC
3y ago

Xmlsoft Libxml2 v2.11.0 was discovered to contain an out-of-bounds read via the xmlSAX2StartElement() function at /libxml2/SAX2.c

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. N…

▾ Twilightxmlsoft · libxml2EPSS 1.1%via NVD
CVE-2023-29469Medium· 6.5
3y ago

An issue was discovered in libxml2 before 2.10.4

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 doub…

▾ Sunlitxmlsoft · libxml2EPSS 1.3%via NVD
CVE-2023-28484Medium· 6.5
3y ago

In libxml2 before 2.10.4, parsing of certain invalid XSD schemas can lead to a NULL pointer dereference and subsequently a segfault

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.

▾ Sunlitxmlsoft · libxml2EPSS 1.2%via NVD
CVE-2022-40304High· 7.8
3y ago

An issue was discovered in libxml2 before 2.10.3

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.

▾ Twilightxmlsoft · libxml2EPSS 5.8%via NVD
CVE-2022-40303High· 7.5
3y ago

An issue was discovered in libxml2 before 2.10.3

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 negativ…

▾ Twilightxmlsoft · libxml2EPSS 41%via NVD
CVE-2016-3709Medium· 6.1
4y ago

Possible cross-site scripting vulnerability in libxml after commit 960f0e2.

Possible cross-site scripting vulnerability in libxml after commit 960f0e2.

▾ Sunlitxmlsoft · libxml2EPSS 1.3%via NVD
CVE-2022-29824Medium· 6.5
4y ago

In libxml2 before 2.9.14, several buffer handling functions in buf.c (xmlBuf*) and tree.c (xmlBuffer*) don't check for integer overflows

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, m…

▾ Sunlitxmlsoft · libxml2EPSS 3.8%via NVD
CVE-2022-23308High· 7.5
4y ago

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.

▾ Twilightxmlsoft · libxml2EPSS 5.1%via NVD
CVE-2021-3541Medium· 6.5
5y ago

A flaw was found in libxml2

A flaw was found in libxml2. Exponential entity expansion attack its possible bypassing all existing protection mechanisms and leading to denial of service.

▾ Sunlitxmlsoft · libxml2EPSS 2.1%via NVD
CVE-2021-3517High· 8.6
5y ago

There is a flaw in the xml entity encoding functionality of libxml2 in versions before 2.9.11

There is a flaw in the xml entity encoding functionality of libxml2 in versions before 2.9.11. An attacker who is able to supply a crafted file to be processed by an application linked with the affected functionality of libxml2 could tri…

▾ Twilightxmlsoft · libxml2EPSS 17%via NVD
libxml2 vulnerabilities (CVEs) · VulnSea