Summary
It was discovered that Expat could be made to allocate large amounts of
memory when parsing a small crafted document. An attacker could possibly
use this issue to cause Expat to consume resources, leading to a denial of
service. This issue was only addressed in Ubuntu 24.04 LTS.
(CVE-2025-59375)
It was discovered that Expat incorrectly handled empty external parameter
entity content. An attacker could possibly use this issue to cause Expat to
crash, resulting in a denial of service. (CVE-2026-32776)
It was discovered that Expat incorrectly handled certain DTD content. An
attacker could possibly use this issue to cause Expat to enter an infinite
loop, resulting in a denial of service. (CVE-2026-32777)
It was discovered that Expat incorrectly handled memory when retrying after
an earlier out-of-memory condition. An attacker could possibly use this
issue to cause Expat to crash, resulting in a denial of service.
(CVE-2026-32778)
It was discovered that Expat performed attribute name collision checks
inefficiently. An attacker could possibly use this issue to cause Expat to
consume resources when processing a moderately sized crafted XML document,
resulting in a denial of service. This issue was only addressed in Ubuntu
24.04 LTS and Ubuntu 26.04 LTS. (CVE-2026-45186)
It was discovered that Expat used insufficient entropy, allowing hash
flooding through a crafted XML document. An attacker could possibly use
this issue to cause Expat to consume resources, leading to a denial of
service. This issue was only addressed in Ubuntu 14.04 LTS, Ubuntu 24.04
LTS, and Ubuntu 26.04 LTS. (CVE-2026-41080)
It was discovered that Expat did not track handler call depth for certain
functions called from within handlers, leading to a use-after-free. An
attacker could possibly use this issue to cause Expat to crash, resulting
in a denial of service, or possibly execute arbitrary code.
(CVE-2026-50219, CVE-2026-56412)
It was discovered that Expat incorrectly handled certain values, leading to
integer overflows. An attacker could possibly use this issue to cause Expat
to crash, resulting in a denial of service. (CVE-2026-56403,
CVE-2026-56404, CVE-2026-56405)
It was discovered that Expat incorrectly handled certain values, leading to
an integer overflow. An attacker could possibly use this issue to cause
Expat to crash, resulting in a denial of service. This issue only affected
Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, and
Ubuntu 26.04 LTS. (CVE-2026-56408)
Fixed packages 7
| Release | Package | Fixed in |
|---|---|---|
| Ubuntu · 22.04 LTS 22.04:LTS | expat | 2.4.7-1ubuntu0.8 |
| Ubuntu · 24.04 LTS 24.04:LTS | expat | 2.6.1-2ubuntu0.5 |
| Ubuntu · 26.04 LTS 26.04:LTS | expat | 2.7.4-1ubuntu0.1 |
| Ubuntu · Pro 14.04 LTS Pro:14.04:LTS | expat | 2.1.0-4ubuntu1.4+esm12 |
| Ubuntu · Pro 16.04 LTS Pro:16.04:LTS | expat | 2.1.0-7ubuntu0.16.04.5+esm13 |
| Ubuntu · Pro 18.04 LTS Pro:18.04:LTS | expat | 2.2.5-3ubuntu0.9+esm4 |
| Ubuntu · Pro 20.04 LTS Pro:20.04:LTS | expat | 2.2.9-1ubuntu0.8+esm2 |
Vulnerabilities 12
-
High 7.5
libexpat in Expat before 2.7.2 allows attackers to trigger large dynamic memory allocations via a small document that i…
-
Medium 6.9
libexpat before 2.8.2 has an integer overflow in storeAtts.
-
Medium 6.9
libexpat before 2.8.2 has an integer overflow in addBinding.
-
Medium 6.9
libexpat before 2.8.2 has an integer overflow in getAttributeId.
-
Medium 6.9
libexpat before 2.8.2 has an integer overflow in copyString.
-
Medium 4.9
libexpat before 2.8.2 lacks handler call depth tracking for calls to XML_GetBuffer, XML_Parse, XML_ParseBuffer, XML_Par…
-
Medium 4.9
libexpat before 2.8.2 does not consider XML_TOK_DATA_CHARS in doCdataSection and thus lacks handler call depth tracking…
-
Medium 4.0
libexpat before 2.7.5 allows a NULL pointer dereference with empty external parameter entity content.
-
Medium 4.0
libexpat before 2.7.5 allows an infinite loop while parsing DTD content.
-
Low 2.9
libexpat before 2.7.5 allows a NULL pointer dereference in the function setContext on retry after an earlier ouf-of-mem…
-
Low 2.9
libexpat before 2.8.0 uses insufficient entropy, and thus hash flooding can occur via a crafted XML document.
-
Low 2.9
In libexpat before 2.8.1, the computational complexity of attribute name collision checks allows a denial of service vi…
References
-
report
https://ubuntu.com/security/CVE-2025-59375
-
report
https://ubuntu.com/security/CVE-2026-32776
-
report
https://ubuntu.com/security/CVE-2026-32777
-
report
https://ubuntu.com/security/CVE-2026-32778
-
report
https://ubuntu.com/security/CVE-2026-41080
-
report
https://ubuntu.com/security/CVE-2026-45186
-
report
https://ubuntu.com/security/CVE-2026-50219
-
report
https://ubuntu.com/security/CVE-2026-56403
-
report
https://ubuntu.com/security/CVE-2026-56404
-
report
https://ubuntu.com/security/CVE-2026-56405
-
report
https://ubuntu.com/security/CVE-2026-56408
-
report
https://ubuntu.com/security/CVE-2026-56412