CVE-2024-8176
Libexpat: expat: improper restriction of xml entity expansion depth in libexpat
Reported by redhat · Published March 14, 2025
libexpat is fixed in 2.7.0 (GitHub Packages)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libexpat | GitHub Packages | 2.7.0 |
| xmlrpc-c-c++ | Amazon Linux | 1.51.08-2.amzn2023.0.2 |
| xmlrpc-c-client++ | Amazon Linux | 1.51.08-2.amzn2023.0.2 |
| xmlrpc-c-devel | Amazon Linux | 1.51.08-2.amzn2023.0.2 |
| xmlrpc-c-apps | Amazon Linux | 1.51.08-2.amzn2023.0.2 |
| expat | Chainguard | 2.7.0-r0 |
| xmlrpc-c | Amazon Linux | 1.51.08-2.amzn2023.0.2 |
| expat | Alpine | 2.7.0-r0 |
| xmlrpc-c-client | Amazon Linux | 1.51.08-2.amzn2023.0.2 |
| expat | Wolfi | 2.7.0-r0 |
| SCALANCE XCM-/XRM-/XCH-/XRH-300 family | Siemens | 3.2 |
| SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
4 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| 0 | ||
| Red Hat | Red Hat Enterprise Linux 10 | 0:2.7.1-1.el10_0 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:2.2.5-17.el8_10 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:1.51.0-11.el8_10 |
| Red Hat | Red Hat Enterprise Linux 8.2 Advanced Update Support | 0:2.2.10-1.el8_2 |
| Red Hat | Red Hat Enterprise Linux 8.2 Advanced Update Support | 0:1.51.0-5.el8_2.2 |
| Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | 0:2.2.10-1.el8_4 |
| Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | 0:1.51.0-5.el8_4.2 |
| Red Hat | Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | 0:2.2.10-1.el8_4 |
| Red Hat | Red Hat Enterprise Linux 8.4 Telecommunications Update Service | 0:1.51.0-5.el8_4.2 |
| Red Hat | Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions | 0:1.51.0-5.el8_4.2 |
| Red Hat | Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | 0:2.2.10-1.el8_6 |
| Red Hat | Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | 0:1.51.0-6.el8_6.1 |
| Red Hat | Red Hat Enterprise Linux 8.6 Telecommunications Update Service | 0:2.2.10-1.el8_6 |
| Red Hat | Red Hat Enterprise Linux 8.6 Telecommunications Update Service | 0:1.51.0-6.el8_6.1 |
| Red Hat | Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | 0:2.2.10-1.el8_6 |
| Red Hat | Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | 0:1.51.0-6.el8_6.1 |
| Red Hat | Red Hat Enterprise Linux 8.8 Extended Update Support | 0:1.51.0-8.el8_8.1 |
| Red Hat | Red Hat Enterprise Linux 8.8 Telecommunications Update Service | 0:2.2.10-1.el8_8 |
| Red Hat | Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | 0:2.2.10-1.el8_8 |
…and 86 more
Timeline
- Mar 13, 2025 CVE Published
- Mar 14, 2025 Coalition ESS Score (30 in total, the first dated here)
- Mar 15, 2025 EPSS Score (30 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Mar 17, 2026 Security Advisory (38 in total, the first dated here)
- Oct 20, 2026 Distribution Patch (29 in total, the first dated here)
- Nov 5, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-8176
vulnetix vdb fixes CVE-2024-8176
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-8176/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2025:13681 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:22033 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:22034 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:22035 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:22607 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:22785 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:22842 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:22871 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:3531 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:3734 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:3913 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:4048 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:4446 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:4447 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:4448 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:4449 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:7444 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:7512 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:8385 vendor-advisoryx_refsource_REDHAT
- vdb-entryx_refsource_REDHAT
…and 21 more