CVE-2024-8176
Libexpat: expat: improper restriction of xml entity expansion depth in libexpat
- State
- Published
- Severity
- 7.5 High
- Published
- Mar 14, 2025
- Updated
- Oct 21, 2026
- Reserved
- Aug 26, 2024
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 7.5 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | redhat |
Weaknesses
- CWE-674 Uncontrolled Recursion
Affected Products
| Product | Versions |
|---|---|
libexpat |
|
Red Hat Enterprise Linux 10Red Hat |
|
Red Hat Enterprise Linux 8Red Hat |
|
Red Hat Enterprise Linux 8Red Hat |
|
Red Hat Enterprise Linux 8.2 Advanced Update SupportRed Hat |
|
Red Hat Enterprise Linux 8.2 Advanced Update SupportRed Hat |
|
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportRed Hat |
|
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportRed Hat |
|
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-OnRed Hat |
|
Red Hat Enterprise Linux 8.4 Telecommunications Update ServiceRed Hat |
|
Red Hat Enterprise Linux 8.4 Update Services for SAP SolutionsRed Hat |
|
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportRed Hat |
|
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportRed Hat |
|
Red Hat Enterprise Linux 8.6 Telecommunications Update ServiceRed Hat |
|
Red Hat Enterprise Linux 8.6 Telecommunications Update ServiceRed Hat |
|
Red Hat Enterprise Linux 8.6 Update Services for SAP SolutionsRed Hat |
|
Red Hat Enterprise Linux 8.6 Update Services for SAP SolutionsRed Hat |
|
Red Hat Enterprise Linux 8.8 Extended Update SupportRed Hat |
|
Red Hat Enterprise Linux 8.8 Telecommunications Update ServiceRed Hat |
|
Red Hat Enterprise Linux 8.8 Update Services for SAP SolutionsRed Hat |
|
Red Hat Enterprise Linux 9Red Hat |
|
Red Hat Enterprise Linux 9Red Hat |
|
Red Hat Enterprise Linux 9Red Hat |
|
Red Hat Enterprise Linux 9Red Hat |
|
Red Hat Enterprise Linux 9.0 Update Services for SAP SolutionsRed Hat |
|
Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsRed Hat |
|
Red Hat Enterprise Linux 9.4 Extended Update SupportRed Hat |
|
Red Hat JBoss Core Services 2.4.62.SP1Red Hat | |
DevWorkspace Operator 0.33Red Hat |
|
Red Hat Discovery 1.14Red Hat |
|
Red Hat Discovery 1.14Red Hat |
|
Red Hat Enterprise Linux 6Red Hat | |
Red Hat Enterprise Linux 6Red Hat | |
Red Hat Enterprise Linux 7Red Hat | |
Red Hat Enterprise Linux 7Red Hat | |
Red Hat Enterprise Linux 7Red Hat | |
Red Hat Enterprise Linux 8Red Hat | |
Red Hat Enterprise Linux 8Red Hat | |
Red Hat Enterprise Linux 8Red Hat | |
Red Hat Enterprise Linux 8Red Hat | |
Red Hat Enterprise Linux 9Red Hat | |
Red Hat Enterprise Linux 9Red Hat | |
Red Hat Enterprise Linux 9Red Hat | |
Red Hat Enterprise Linux 9Red Hat | |
Red Hat OpenShift Container Platform 4Red Hat | |
Red Hat OpenShift Container Platform 4Red Hat |
References
- RHSA-2025:13681vendor-advisory
- RHSA-2025:22033vendor-advisory
- RHSA-2025:22034vendor-advisory
- RHSA-2025:22035vendor-advisory
- RHSA-2025:22607vendor-advisory
- RHSA-2025:22785vendor-advisory
- RHSA-2025:22842vendor-advisory
- RHSA-2025:22871vendor-advisory
- RHSA-2025:3531vendor-advisory
- RHSA-2025:3734vendor-advisory
- RHSA-2025:3913vendor-advisory
- RHSA-2025:4048vendor-advisory
- RHSA-2025:4446vendor-advisory
- RHSA-2025:4447vendor-advisory
- RHSA-2025:4448vendor-advisory
- RHSA-2025:4449vendor-advisory
- RHSA-2025:7444vendor-advisory
- RHSA-2025:7512vendor-advisory
- RHSA-2025:8385vendor-advisory
- https://access.redhat.com/security/cve/CVE-2024-8176vdb-entry
- RHBZ#2310137issue-tracking
- https://github.com/libexpat/libexpat/issues/893
- https://github.com/libexpat/libexpat/pull/973
- http://www.openwall.com/lists/oss-security/2025/03/15/1
- https://blog.hartwork.org/posts/expat-2-7-0-released/
- https://github.com/libexpat/libexpat/blob/R_2_7_0/expat/Changes#L40-L52
- https://bugzilla.suse.com/show_bug.cgi?id=1239618
- https://ubuntu.com/security/CVE-2024-8176
- https://security-tracker.debian.org/tracker/CVE-2024-8176
- https://gitlab.alpinelinux.org/alpine/aports/-/commit/d068c3ff36fc6f4789988a09c69b434db757db53
- https://security.netapp.com/advisory/ntap-20250328-0009/
- https://www.kb.cert.org/vuls/id/760160
- http://seclists.org/fulldisclosure/2025/May/12
- http://seclists.org/fulldisclosure/2025/May/11
- http://seclists.org/fulldisclosure/2025/May/10
- http://seclists.org/fulldisclosure/2025/May/8
- http://seclists.org/fulldisclosure/2025/May/7
- http://seclists.org/fulldisclosure/2025/May/6
- http://www.openwall.com/lists/oss-security/2025/09/24/11
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-355557.html
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.