Red Hat Security AdvisoryRHSA-2025:22871
expat security update
Released 2025-12-09 · Red Hat rating Important · View on Red Hat →
Fixes 18 records
Priority HIGH 73
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).
CVSS 3.1HIGH 8.8· Network · Low privileges · No interaction · EPSS 0.04672 · Published 2022-01-01 · Partial fix CWE-682
Priority HIGH 72
A stack overflow vulnerability exists in the libexpat library due to the way it handles recursive entity expansion in XML documents.
CVSS 3.1HIGH 7.5· Network · No auth · No interaction · EPSS 0.01353 · Published 2025-03-14 · Partial fix · 2.7.0, 2.7.1-1.el10_0 +18 CWE-674
Priority HIGH 70
In doProlog in xmlparse.c in Expat (aka libexpat) before 2.4.3, an integer overflow exists for m_groupSize.
CVSS 3.1HIGH 8.1· Network · No auth · No interaction · EPSS 0.04465 · Published 2022-01-06 · Partial fix CWE-190
Priority MEDIUM 57
addBinding in xmlparse.c in Expat (aka libexpat) before 2.4.3 has an integer overflow.
CVSS 3.1CRITICAL 9.8· Network · No auth · No interaction · EPSS 0.0548 · Published 2022-01-08 · Partial fix CWE-190
Priority MEDIUM 55
defineAttribute in xmlparse.c in Expat (aka libexpat) before 2.4.3 has an integer overflow.
CVSS 3.1CRITICAL 9.8· Network · No auth · No interaction · EPSS 0.03866 · Published 2022-01-08 · Partial fix CWE-190
Priority MEDIUM 55
build_model in xmlparse.c in Expat (aka libexpat) before 2.4.3 has an integer overflow.
CVSS 3.1CRITICAL 9.8· Network · No auth · No interaction · EPSS 0.03866 · Published 2022-01-08 · Partial fix CWE-190
Priority MEDIUM 54
expat before version 2.4.0 does not properly handle entities expansion unless an application developer uses the XML_SetEntityDeclHandler function, which allows remote attackers to cause a denial of service (resource cons…
CVSS 2.0MEDIUM 6.8· Network · No auth · Interaction — · EPSS 0.19433 · Published 2014-01-21 · Partial fix · 2.4.0 CWE-611
Priority MEDIUM 49
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 de…
CVSS 3.1HIGH 7.5· Network · No auth · No interaction · EPSS 0.07107 · Published 2019-06-24 · Partial fix CWE-611
Priority MEDIUM 47
In Expat (aka libexpat) before 2.4.5, there is an integer overflow in copyString.
CVSS 3.1HIGH 7.5· Network · No auth · No interaction · EPSS 0.04818 · Published 2022-02-18 · Partial fix CWE-190
Priority MEDIUM 46
Expat (aka libexpat) before 2.4.4 has an integer overflow in the doProlog function.
CVSS 3.1HIGH 7.5· Network · No auth · No interaction · EPSS 0.04688 · Published 2022-01-26 · Partial fix CWE-190
Priority MEDIUM 46
storeAtts in xmlparse.c in Expat (aka libexpat) before 2.4.3 has an integer overflow.
CVSS 3.1HIGH 8.8· Network · No auth · User interaction · EPSS 0.03182 · Published 2022-01-08 · Partial fix CWE-190
Priority MEDIUM 46
nextScaffoldPart in xmlparse.c in Expat (aka libexpat) before 2.4.3 has an integer overflow.
CVSS 3.1HIGH 8.8· Network · No auth · User interaction · EPSS 0.03182 · Published 2022-01-08 · Partial fix CWE-190
Priority MEDIUM 46
lookup in xmlparse.c in Expat (aka libexpat) before 2.4.3 has an integer overflow.
CVSS 3.1HIGH 8.8· Network · No auth · User interaction · EPSS 0.02994 · Published 2022-01-08 · Partial fix CWE-190
Priority MEDIUM 45
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.
CVSS 3.1HIGH 7.5· Network · No auth · No interaction · EPSS 0.03182 · Published 2022-10-24 · Partial fix CWE-416
Priority MEDIUM 43
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.
CVSS 3.1HIGH 7.5· Network · No auth · No interaction · EPSS 0.02149 · Published 2024-02-04 · Partial fix CWE-400
Priority MEDIUM 42
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…
CVSS 3.1HIGH 7.5· Network · No auth · No interaction · EPSS 0.06643 · Published 2019-09-04 · Partial fix CWE-125
Priority LOW 36
libexpat in Expat before 2.7.2 allows attackers to trigger large dynamic memory allocations via a small document that is submitted for parsing.
CVSS 3.1HIGH 7.5· Network · No auth · No interaction · EPSS 0.0138 · Published 2025-09-15 · Partial fix · 2.7.2 CWE-770
Priority LOW 35
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.
CVSS 3.1MEDIUM 6.5· Network · No auth · User interaction · EPSS 0.03295 · Published 2022-02-18 · Partial fix CWE-674