Vendorslibexpat Projectlibexpatall versions
Vulnerabilities

libexpat Project libexpat

Ranked by severity, then by exploit likelihood. Click a CVE ID for its full record.

64CVEs
CVE-2022-25236
xmlparse.c in Expat (aka libexpat) before 2.4.5 allows attackers to insert namespace-separator characters into namespace URIs.
Published 2022-02-16 · Modified
9.8EPSS 0.359
CVE-2016-0718
Expat allows context-dependent attackers to cause a denial of service (crash) or possibly execute arbitrary code via a malformed input document, which triggers a buffer overflow.
Published 2016-05-26 · Modified
9.8EPSS 0.133
CVE-2022-25235
xmltok_impl.c in Expat (aka libexpat) before 2.4.5 lacks certain validation of encoding, such as checks for whether a UTF-8 character is valid in a certain context.
Published 2022-02-16 · Modified
9.8EPSS 0.050
CVE-2022-22822
addBinding in xmlparse.c in Expat (aka libexpat) before 2.4.3 has an integer overflow.
Published 2022-01-08 · Modified
9.8EPSS 0.048
CVE-2022-25315
In Expat (aka libexpat) before 2.4.5, there is an integer overflow in storeRawNames.
Published 2022-02-18 · Modified
9.8EPSS 0.048
CVE-2022-23852
Expat (aka libexpat) before 2.4.4 has a signed integer overflow in XML_GetBuffer, for configurations with a nonzero XML_CONTEXT_BYTES.
Published 2022-01-24 · Modified
9.8EPSS 0.046
CVE-2022-22824
defineAttribute in xmlparse.c in Expat (aka libexpat) before 2.4.3 has an integer overflow.
Published 2022-01-08 · Modified
9.8EPSS 0.034
CVE-2022-22823
build_model in xmlparse.c in Expat (aka libexpat) before 2.4.3 has an integer overflow.
Published 2022-01-08 · Modified
9.8EPSS 0.034
CVE-2024-45490
An issue was discovered in libexpat before 2.6.3. xmlparse.c does not reject a negative length for XML_ParseBuffer.
Published 2024-08-30 · Modified
9.8EPSS 0.017
CVE-2024-45492
An issue was discovered in libexpat before 2.6.3. nextScaffoldPart in xmlparse.c can have an integer overflow for m_groupSize on 32-bit platforms (where UINT_MAX equals SIZE_MAX).
Published 2024-08-30 · Modified
9.8EPSS 0.014
CVE-2024-45491
An issue was discovered in libexpat before 2.6.3. dtdCopy in xmlparse.c can have an integer overflow for nDefaultAtts on 32-bit platforms (where UINT_MAX equals SIZE_MAX).
Published 2024-08-30 · Modified
9.8EPSS 0.011
CVE-2021-45960
In Expat (aka libexpat) before 2.4.3, a left shift by 29 (or more) places in the storeAtts function in xmlparse.c can lead to realloc misbehavior (e.g., allocating too few bytes, or only freeing memory).
Published 2022-01-01 · Modified
9.0EPSS 0.042
CVE-2022-22827
storeAtts in xmlparse.c in Expat (aka libexpat) before 2.4.3 has an integer overflow.
Published 2022-01-08 · Modified
8.8EPSS 0.028
CVE-2022-22826
nextScaffoldPart in xmlparse.c in Expat (aka libexpat) before 2.4.3 has an integer overflow.
Published 2022-01-08 · Modified
8.8EPSS 0.028
CVE-2022-22825
lookup in xmlparse.c in Expat (aka libexpat) before 2.4.3 has an integer overflow.
Published 2022-01-08 · Modified
8.8EPSS 0.026
CVE-2026-66046
Expat Denial of Service via storeAtts() Quadratic Complexity
Published 2026-08-18 · Analyzed
8.7EPSS 0.007
CVE-2016-4472
The overflow protection in Expat is removed by compilers with certain optimization settings, which allows remote attackers to cause a denial of service (crash) or possibly execute arbitrary code via crafted XML data. NOTE: this vulnerability exists because of an incomplete fix for CVE-2015-1283 and CVE-2015-2716.
Published 2016-06-30 · Modified
8.1EPSS 0.119
CVE-2021-46143
In doProlog in xmlparse.c in Expat (aka libexpat) before 2.4.3, an integer overflow exists for m_groupSize.
Published 2022-01-06 · Modified
8.1EPSS 0.038
CVE-2022-40674
libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.
Published 2022-09-14 · Modified
8.1EPSS 0.022
CVE-2018-20843
In libexpat in Expat before 2.2.7, XML input including XML names that contain a large number of colons could make the XML parser consume a high amount of RAM and CPU resources while processing (enough to be usable for denial-of-service attacks).
Published 2019-06-24 · Modified
7.8EPSS 0.071
CVE-2016-5300
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.
Published 2016-06-16 · Modified
7.8EPSS 0.065
CVE-2017-11742
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.
Published 2017-07-30 · Modified
7.8EPSS 0.005
CVE-2026-25210
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.
Published 2026-01-30 · Modified
7.8EPSS 0.002
CVE-2026-76957
libexpat before 2.8.4 lacks handler call depth tracking with custom encoding callbacks. Thus, a use-after-free can occur. NOTE: this is similar to CVE-2026-50219, CVE-2026-56131 and CVE-2026-56412.
Published 2026-08-20 · Analyzed
7.8EPSS 0.001
CVE-2017-9233
XML External Entity vulnerability in libexpat 2.2.0 and earlier (Expat XML Parser Library) allows attackers to put the parser in an infinite loop using a malformed external entity definition from an external DTD.
Published 2017-07-25 · Modified
7.5EPSS 0.087
CVE-2019-15903
In libexpat before 2.2.8, crafted XML input could fool the parser into changing from DTD parsing to document parsing too early; a consecutive call to XML_GetCurrentLineNumber (or XML_GetCurrentColumnNumber) then resulted in a heap-based buffer over-read.
Published 2019-09-04 · Modified
7.5EPSS 0.066
CVE-2022-25314
In Expat (aka libexpat) before 2.4.5, there is an integer overflow in copyString.
Published 2022-02-18 · Modified
7.5EPSS 0.047
CVE-2022-23990
Expat (aka libexpat) before 2.4.4 has an integer overflow in the doProlog function.
Published 2022-01-26 · Modified
7.5EPSS 0.040
CVE-2022-43680
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.
Published 2022-10-24 · Modified
7.5EPSS 0.024
CVE-2024-28757
libexpat through 2.6.1 allows an XML Entity Expansion attack when there is isolated use of external parsers (created via XML_ExternalEntityParserCreate).
Published 2024-03-10 · Modified
7.5EPSS 0.020
CVE-2023-52425
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.
Published 2024-02-04 · Modified
7.5EPSS 0.018
CVE-2025-59375
libexpat in Expat before 2.7.2 allows attackers to trigger large dynamic memory allocations via a small document that is submitted for parsing.
Published 2025-09-15 · Modified
7.5EPSS 0.013
CVE-2026-45186
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.
Published 2026-05-10 · Modified
7.5EPSS 0.006
CVE-2026-76956
In libexpat 2.8.2 and 2.8.3 before 2.8.4, misinterpretation of getentropy's return code leads to insufficient entropy, which results in being vulnerable to hash flooding attacks, causing a denial of service via crafted XML content.
Published 2026-08-20 · Analyzed
7.5EPSS 0.005
CVE-2026-41080
libexpat before 2.8.0 uses insufficient entropy, and thus hash flooding can occur via a crafted XML document.
Published 2026-04-16 · Modified
7.5EPSS 0.004
CVE-2026-56404
libexpat before 2.8.2 has an integer overflow in addBinding.
Published 2026-06-21 · Analyzed
6.9EPSS 0.001
CVE-2026-56408
libexpat before 2.8.2 has an integer overflow in copyString.
Published 2026-06-21 · Analyzed
6.9EPSS 0.001
CVE-2026-56403
libexpat before 2.8.2 has an integer overflow in storeAtts.
Published 2026-06-21 · Analyzed
6.9EPSS 0.001
CVE-2026-56405
libexpat before 2.8.2 has an integer overflow in getAttributeId.
Published 2026-06-21 · Analyzed
6.9EPSS 0.001
CVE-2026-56411
xmlwf in libexpat before 2.8.2 has an integer overflow in endDoctypeDecl via NOTATION declarations.
Published 2026-06-21 · Analyzed
6.9EPSS 0.001
1 / 2Next →