CVE-2024-8176 Libexpat: expat: improper restriction of xml entity expansion depth in libexpat
HighCVSS 7.5
EPSS 1.4%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
Description
A stack overflow vulnerability exists in the libexpat library due to the way it handles recursive entity expansion in XML documents. When parsing an XML document with deeply nested entity references, libexpat can be forced to recurse indefinitely, exhausting the stack space and causing a crash. This issue could lead to denial of service (DoS) or, in some cases, exploitable memory corruption, depending on the environment and library usage.
Upgrade path
60 packages: 28 fixed, 1 partially fixed, 29 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/libxmltok(Debian 12) | = 1.2-4; = 1.2-4.1; = 1.2-4.1~exp1; = 1.2-4.2 +1 more | No fix listed | No fix yet |
| redhat openshift | All versions | No fix listed | No fix yet |
| ubuntu/cadaver(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/cadaver(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/cadaver(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/cadaver(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| ubuntu/insighttoolkit4(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/libxmltok(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/libxmltok(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/matanza(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/matanza(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/matanza(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/matanza(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| ubuntu/swish-e(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/swish-e(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/swish-e(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/swish-e(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| ubuntu/tdom(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/tdom(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/tdom(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/tdom(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| ubuntu/wbxml2(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/wbxml2(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/wbxml2(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/wbxml2(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| ubuntu/xmlrpc-c(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/xmlrpc-c(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/xmlrpc-c(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/xmlrpc-c(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| redhat enterprise linux | < 0:1.51.0-11.el8_10; < 0:2.2.5-17.el8_10; < 0:2.5.0-3.el9_5.3; < 0:2.5.0-5.el9_6 +3 more | 0:1.51.0-11.el8_10, 0:2.2.5-17.el8_10, 0:2.5.0-3.el9_5.3, 0:2.5.0-5.el9_6, 0:2.7.1-1.el10_0 | Partially fixed |
… and 30 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux expat(Azure Linux:3.0) | < 2.6.4-1 | 2.6.4-1 |
| cbl-mariner expat(CBL-Mariner:2.0) | < 2.6.4-1 | 2.6.4-1 |
| debian/expat(Debian:12) | < 2.5.0-1+deb12u2 | 2.5.0-1+deb12u2 |
| debian/expat(Debian:12) | = 2.5.0-1 | No fix listed |
| debian/expat(Debian:12) | = 2.5.0-1+deb12u1 | No fix listed |
| debian/expat(Debian:13) | < 2.7.0-1 | 2.7.0-1 |
| debian/expat(Debian:14) | < 2.7.0-1 | 2.7.0-1 |
| debian/libxmltok(Debian:12) | All versions | No fix listed |
| debian/libxmltok(Debian:12) | = 1.2-4 | No fix listed |
| debian/libxmltok(Debian:12) | = 1.2-4.1 | No fix listed |
| debian/libxmltok(Debian:12) | = 1.2-4.1~exp1 | No fix listed |
| debian/libxmltok(Debian:12) | = 1.2-4.2 | No fix listed |
| ubuntu/cadaver(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/expat(Ubuntu:22.04) | < 2.4.7-1ubuntu0.6 | 2.4.7-1ubuntu0.6 |
| ubuntu/insighttoolkit4(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/matanza(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/tdom(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/wbxml2(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/libxmltok(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/swish-e(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/xmlrpc-c(Ubuntu:22.04) | All versions | No fix listed |
| libexpat | < 2.7.0 | 2.7.0 |
| redhat enterprise linux | < 0:2.7.1-1.el10_0 | 0:2.7.1-1.el10_0 |
| redhat enterprise linux | < 0:2.2.5-17.el8_10 | 0:2.2.5-17.el8_10 |
| redhat enterprise linux | < 0:1.51.0-11.el8_10 | 0:1.51.0-11.el8_10 |
Show 63 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat rhel aus | < 0:2.2.10-1.el8_2 | 0:2.2.10-1.el8_2 |
| redhat rhel aus | < 0:1.51.0-5.el8_2.2 | 0:1.51.0-5.el8_2.2 |
| redhat rhel aus | < 0:2.2.10-1.el8_4 | 0:2.2.10-1.el8_4 |
| redhat rhel eus long life | < 0:2.2.10-1.el8_4 | 0:2.2.10-1.el8_4 |
| redhat rhel aus | < 0:1.51.0-5.el8_4.2 | 0:1.51.0-5.el8_4.2 |
| redhat rhel e4s | < 0:1.51.0-5.el8_4.2 | 0:1.51.0-5.el8_4.2 |
| redhat rhel tus | < 0:1.51.0-5.el8_4.2 | 0:1.51.0-5.el8_4.2 |
| redhat rhel aus | < 0:2.2.10-1.el8_6 | 0:2.2.10-1.el8_6 |
| redhat rhel e4s | < 0:2.2.10-1.el8_6 | 0:2.2.10-1.el8_6 |
| redhat rhel tus | < 0:2.2.10-1.el8_6 | 0:2.2.10-1.el8_6 |
| redhat rhel aus | < 0:1.51.0-6.el8_6.1 | 0:1.51.0-6.el8_6.1 |
| redhat rhel e4s | < 0:1.51.0-6.el8_6.1 | 0:1.51.0-6.el8_6.1 |
| redhat rhel tus | < 0:1.51.0-6.el8_6.1 | 0:1.51.0-6.el8_6.1 |
| redhat rhel eus | < 0:1.51.0-8.el8_8.1 | 0:1.51.0-8.el8_8.1 |
| redhat rhel e4s | < 0:2.2.10-1.el8_8 | 0:2.2.10-1.el8_8 |
| redhat rhel tus | < 0:2.2.10-1.el8_8 | 0:2.2.10-1.el8_8 |
| redhat enterprise linux | < 0:2.5.0-3.el9_5.3 | 0:2.5.0-3.el9_5.3 |
| redhat enterprise linux | < 0:2.5.0-5.el9_6 | 0:2.5.0-5.el9_6 |
| redhat rhel e4s | < 0:2.2.10-12.el9_0.4 | 0:2.2.10-12.el9_0.4 |
| redhat rhel e4s | < 0:2.5.0-1.el9_2.3 | 0:2.5.0-1.el9_2.3 |
| redhat rhel eus | < 0:2.5.0-2.el9_4.3 | 0:2.5.0-2.el9_4.3 |
| redhat jboss core services | = 1.0 | No fix listed |
| redhat devworkspace | < 0.33-1744075017 | 0.33-1744075017 |
| redhat discovery | < 1.14.3-1748529279 | 1.14.3-1748529279 |
| redhat discovery | < 1.14.2-1748467619 | 1.14.2-1748467619 |
| redhat rhel els | = 6 | No fix listed |
| redhat rhel els | = 7 | No fix listed |
| redhat enterprise linux | All versions | No fix listed |
| redhat enterprise linux | = 8 | No fix listed |
| redhat openshift | All versions | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | V3.1.5 |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | V3.1.5 |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | V3.1.5 |
| Siemens RUGGEDCOM RST2428P | < V3.2 | V3.2 |
| Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | < V3.2 | V3.2 |
| Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family | < V3.2 | V3.2 |
| alpine/expat(Alpine:v3.18) | < 2.7.0-r0 | 2.7.0-r0 |
| alpine/expat(Alpine:v3.19) | < 2.7.0-r0 | 2.7.0-r0 |
| alpine/expat(Alpine:v3.20) | < 2.7.0-r0 | 2.7.0-r0 |
| alpine/expat(Alpine:v3.21) | < 2.7.0-r0 | 2.7.0-r0 |
| alpine/expat(Alpine:v3.22) | < 2.7.0-r0 | 2.7.0-r0 |
| alpine/expat(Alpine:v3.23) | < 2.7.0-r0 | 2.7.0-r0 |
| alpine/expat(Alpine:v3.24) | < 2.7.0-r0 | 2.7.0-r0 |
| ubuntu/cadaver(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/expat(Ubuntu:24.04) | < 2.6.1-2ubuntu0.3 | 2.6.1-2ubuntu0.3 |
| ubuntu/matanza(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/tdom(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/wbxml2(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/libxmltok(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/swish-e(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/xmlrpc-c(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/cadaver(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/matanza(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/tdom(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/wbxml2(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/xmlrpc-c(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/swish-e(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/cadaver(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/matanza(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/swish-e(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/tdom(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/wbxml2(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/xmlrpc-c(Ubuntu:26.10) | All versions | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2024-8176 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7424-1 vendor-advisory
- www.cve.org
- RHSA-2025:13681 vendor-advisory
- RHSA-2025:22033 vendor-advisory
- RHSA-2025:22034 vendor-advisory
- RHSA-2025:22035 vendor-advisory
- RHSA-2025:22607 vendor-advisory
- RHSA-2025:22785 vendor-advisory
- RHSA-2025:22842 vendor-advisory
- RHSA-2025:22871 vendor-advisory
- RHSA-2025:3531 vendor-advisory
- RHSA-2025:3734 vendor-advisory
- RHSA-2025:3913 vendor-advisory
- RHSA-2025:4048 vendor-advisory
- RHSA-2025:4446 vendor-advisory
- RHSA-2025:4447 vendor-advisory
- RHSA-2025:4448 vendor-advisory
- RHSA-2025:4449 vendor-advisory
- RHSA-2025:7444 vendor-advisory
- RHSA-2025:7512 vendor-advisory
- RHSA-2025:8385 vendor-advisory
- access.redhat.com vdb-entry
- RHBZ#2310137 issue-tracking
- github.com
- github.com
- www.openwall.com
- blog.hartwork.org
- github.com
- bugzilla.suse.com
- gitlab.alpinelinux.org
- security.netapp.com
- www.kb.cert.org
- seclists.org
- seclists.org
- seclists.org
- seclists.org
- seclists.org
- seclists.org
- www.openwall.com
- cert-portal.siemens.com
- cert-portal.siemens.com
- security.alpinelinux.org vendor-advisory
- ENISA EUVD EUVD-2024-54057 third-party-advisory