Libexpat Project Libexpat vulnerabilities
61 known vulnerabilities affecting libexpat_project/libexpat.
Total CVEs
61
CISA KEV
0
Public exploits
0
Exploited in wild
0
Severity breakdown
CRITICAL10HIGH21MEDIUM28LOW2
Vulnerabilities
Page 2 of 4
CVE-2022-40674P3HIGHCVSS 8.1fixed in 2.4.92022-09-14
CVE-2022-40674 [HIGH] CWE-416 CVE-2022-40674: libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.
libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.
nvd
CVE-2025-59375P3HIGHCVSS 7.5fixed in 2.7.22025-09-15
CVE-2025-59375 [HIGH] CWE-770 CVE-2025-59375: libexpat in Expat before 2.7.2 allows attackers to trigger large dynamic memory allocations via a sm
libexpat in Expat before 2.7.2 allows attackers to trigger large dynamic memory allocations via a small document that is submitted for parsing.
nvd
CVE-2026-25210P3HIGHCVSS 7.8fixed in 2.7.42026-01-30
CVE-2026-25210 [HIGH] CWE-190 CVE-2026-25210: In libexpat before 2.7.4, the doContent function does not properly determine the buffer size bufSize
In libexpat before 2.7.4, the doContent function does not properly determine the buffer size bufSize because there is no integer overflow check for tag buffer reallocation.
nvd
CVE-2021-46143P3HIGHCVSS 7.8fixed in 2.4.32022-01-06
CVE-2021-46143 [HIGH] CWE-190 CVE-2021-46143: In doProlog in xmlparse.c in Expat (aka libexpat) before 2.4.3, an integer overflow exists for m_gro
In doProlog in xmlparse.c in Expat (aka libexpat) before 2.4.3, an integer overflow exists for m_groupSize.
nvd
CVE-2024-45490P3HIGHCVSS 7.5fixed in 2.6.32024-08-30
CVE-2024-45490 [HIGH] CWE-611 CVE-2024-45490: An issue was discovered in libexpat before 2.6.3. xmlparse.c does not reject a negative length for X
An issue was discovered in libexpat before 2.6.3. xmlparse.c does not reject a negative length for XML_ParseBuffer.
nvd
CVE-2022-23990P3HIGHCVSS 7.5fixed in 2.4.42022-01-26
CVE-2022-23990 [HIGH] CWE-190 CVE-2022-23990: Expat (aka libexpat) before 2.4.4 has an integer overflow in the doProlog function.
Expat (aka libexpat) before 2.4.4 has an integer overflow in the doProlog function.
nvd
CVE-2024-28757P3HIGHCVSS 7.5fixed in 2.6.22024-03-10
CVE-2024-28757 [HIGH] CWE-776 CVE-2024-28757: libexpat through 2.6.1 allows an XML Entity Expansion attack when there is isolated use of external
libexpat through 2.6.1 allows an XML Entity Expansion attack when there is isolated use of external parsers (created via XML_ExternalEntityParserCreate).
nvd
CVE-2023-52425P3HIGHCVSS 7.5≤ 2.5.02024-02-04
CVE-2023-52425 [HIGH] CWE-400 CVE-2023-52425: libexpat through 2.5.0 allows a denial of service (resource consumption) because many full reparsing
libexpat through 2.5.0 allows a denial of service (resource consumption) because many full reparsings are required in the case of a large token for which multiple buffer fills are needed.
nvd
CVE-2016-5300P3HIGHCVSS 7.5fixed in 2.2.02016-06-16
CVE-2016-5300 [HIGH] CVE-2016-5300: The XML parser in Expat does not use sufficient entropy for hash initialization, which allows contex
The XML parser in Expat does not use sufficient entropy for hash initialization, which allows context-dependent attackers to cause a denial of service (CPU consumption) via crafted identifiers in an XML document. NOTE: this vulnerability exists because of an incomplete fix for CVE-2012-0876.
nvd
CVE-2022-43680P3HIGHCVSS 7.5≤ 2.4.92022-10-24
CVE-2022-43680 [HIGH] CWE-416 CVE-2022-43680: In libexpat through 2.4.9, there is a use-after free caused by overeager destruction of a shared DTD
In libexpat through 2.4.9, there is a use-after free caused by overeager destruction of a shared DTD in XML_ExternalEntityParserCreate in out-of-memory situations.
nvd
CVE-2015-1283P3MEDIUMCVSS 6.8≤ 2.1.02015-07-23
CVE-2015-1283 [MEDIUM] CWE-190 CVE-2015-1283: Multiple integer overflows in the XML_GetBuffer function in Expat through 2.1.0, as used in Google C
Multiple integer overflows in the XML_GetBuffer function in Expat through 2.1.0, as used in Google Chrome before 44.0.2403.89 and other products, allow remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via crafted XML data, a related issue to CVE-2015-2716.
nvd
CVE-2026-45186P3HIGHCVSS 7.5fixed in 2.8.12026-05-10
CVE-2026-45186 [HIGH] CWE-407 CVE-2026-45186: In libexpat before 2.8.1, the computational complexity of attribute name collision checks allows a d
In libexpat before 2.8.1, the computational complexity of attribute name collision checks allows a denial of service via moderately sized crafted XML input.
nvd
CVE-2009-3560P4MEDIUMCVSS 5.0v2.0.12009-12-04
CVE-2009-3560 [MEDIUM] CVE-2009-3560: The big2_toUtf8 function in lib/xmltok.c in libexpat in Expat 2.0.1, as used in the XML-Twig module
The big2_toUtf8 function in lib/xmltok.c in libexpat in Expat 2.0.1, as used in the XML-Twig module for Perl, allows context-dependent attackers to cause a denial of service (application crash) via an XML document with malformed UTF-8 sequences that trigger a buffer over-read, related to the doProlog function in lib/xmlparse.c, a different vulnerability than C
nvd
CVE-2009-3720P4MEDIUMCVSS 5.0v2.0.12009-11-03
CVE-2009-3720 [MEDIUM] CVE-2009-3720: The updatePosition function in lib/xmltok_impl.c in libexpat in Expat 2.0.1, as used in Python, PyXM
The updatePosition function in lib/xmltok_impl.c in libexpat in Expat 2.0.1, as used in Python, PyXML, w3c-libwww, and other software, allows context-dependent attackers to cause a denial of service (application crash) via an XML document with crafted UTF-8 sequences that trigger a buffer over-read, a different vulnerability than CVE-2009-2625.
nvd
CVE-2022-25313P4MEDIUMCVSS 6.5fixed in 2.4.52022-02-18
CVE-2022-25313 [MEDIUM] CWE-674 CVE-2022-25313: In Expat (aka libexpat) before 2.4.5, an attacker can trigger stack exhaustion in build_model via a
In Expat (aka libexpat) before 2.4.5, an attacker can trigger stack exhaustion in build_model via a large nesting depth in the DTD element.
nvd
CVE-2026-56132P3MEDIUMCVSS 6.9fixed in 2.8.22026-06-19
CVE-2026-56132 [MEDIUM] CWE-821 CVE-2026-56132: In libexpat before 2.8.2, there is a heap-based buffer overflow in doProlog in xmlparse.c because sc
In libexpat before 2.8.2, there is a heap-based buffer overflow in doProlog in xmlparse.c because scaffold backing array reallocation is mishandled when there is data-structure sharing across parsers.
nvd
CVE-2017-11742P4HIGHCVSS 7.8v2.2.1v2.2.22017-07-30
CVE-2017-11742 [HIGH] CWE-426 CVE-2017-11742: The writeRandomBytes_RtlGenRandom function in xmlparse.c in libexpat in Expat 2.2.1 and 2.2.2 on Win
The writeRandomBytes_RtlGenRandom function in xmlparse.c in libexpat in Expat 2.2.1 and 2.2.2 on Windows allows local users to gain privileges via a Trojan horse ADVAPI32.DLL in the current working directory because of an untrusted search path, aka DLL hijacking.
nvd
CVE-2026-56411P4MEDIUMCVSS 6.9fixed in 2.8.22026-06-21
CVE-2026-56411 [MEDIUM] CWE-190 CVE-2026-56411: xmlwf in libexpat before 2.8.2 has an integer overflow in endDoctypeDecl via NOTATION declarations.
xmlwf in libexpat before 2.8.2 has an integer overflow in endDoctypeDecl via NOTATION declarations.
nvd
CVE-2026-56410P4MEDIUMCVSS 6.9fixed in 2.8.22026-06-21
CVE-2026-56410 [MEDIUM] CWE-190 CVE-2026-56410: xmlwf in libexpat before 2.8.2 has an integer overflow in resolveSystemId.
xmlwf in libexpat before 2.8.2 has an integer overflow in resolveSystemId.
nvd
CVE-2026-56404P4MEDIUMCVSS 6.9fixed in 2.8.22026-06-21
CVE-2026-56404 [MEDIUM] CWE-190 CVE-2026-56404: libexpat before 2.8.2 has an integer overflow in addBinding.
libexpat before 2.8.2 has an integer overflow in addBinding.
nvd