Libexpat: expat: improper restriction of xml entity expansion depth in libexpat
Summary
| CVE | CVE-2024-8176 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2025-03-14 09:15:14 UTC |
| Updated | 2026-10-21 21:17:30 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 7.5 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS: 0.013260000 probability, percentile 0.697400000 (date 2026-09-22)
Problem Types: CWE-674 | CWE-674 Uncontrolled Recursion
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| 3.1 | CNA | CVSS | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Red Hat | Red Hat Enterprise Linux 10 | unaffected 0:2.7.1-1.el10_0 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8 | unaffected 0:2.2.5-17.el8_10 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8 | unaffected 0:1.51.0-11.el8_10 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.2 Advanced Update Support | unaffected 0:2.2.10-1.el8_2 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.2 Advanced Update Support | unaffected 0:1.51.0-5.el8_2.2 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | unaffected 0:2.2.10-1.el8_4 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | unaffected 0:1.51.0-5.el8_4.2 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | unaffected 0:2.2.10-1.el8_4 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.4 Telecommunications Update Service | unaffected 0:1.51.0-5.el8_4.2 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.4 Update Services For SAP Solutions | unaffected 0:1.51.0-5.el8_4.2 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | unaffected 0:2.2.10-1.el8_6 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | unaffected 0:1.51.0-6.el8_6.1 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.6 Telecommunications Update Service | unaffected 0:2.2.10-1.el8_6 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.6 Telecommunications Update Service | unaffected 0:1.51.0-6.el8_6.1 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.6 Update Services For SAP Solutions | unaffected 0:2.2.10-1.el8_6 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.6 Update Services For SAP Solutions | unaffected 0:1.51.0-6.el8_6.1 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.8 Extended Update Support | unaffected 0:1.51.0-8.el8_8.1 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.8 Telecommunications Update Service | unaffected 0:2.2.10-1.el8_8 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.8 Update Services For SAP Solutions | unaffected 0:2.2.10-1.el8_8 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9 | unaffected 0:2.5.0-3.el9_5.3 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9 | unaffected 0:2.5.0-5.el9_6 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9 | unaffected 0:2.5.0-3.el9_5.3 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9 | unaffected 0:2.5.0-5.el9_6 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9.0 Update Services For SAP Solutions | unaffected 0:2.2.10-12.el9_0.4 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9.2 Update Services For SAP Solutions | unaffected 0:2.5.0-1.el9_2.3 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9.4 Extended Update Support | unaffected 0:2.5.0-2.el9_4.3 * rpm | Not specified |
| CNA | Red Hat | Red Hat JBoss Core Services 2.4.62.SP1 | Not specified | Not specified |
| CNA | Red Hat | DevWorkspace Operator 0.33 | unaffected 0.33-1744075017 * rpm | Not specified |
| CNA | Red Hat | Red Hat Discovery 1.14 | unaffected 1.14.3-1748529279 * rpm | Not specified |
| CNA | Red Hat | Red Hat Discovery 1.14 | unaffected 1.14.2-1748467619 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 6 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 6 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 7 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 7 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 7 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9 | Not specified | Not specified |
| CNA | Red Hat | Red Hat OpenShift Container Platform 4 | Not specified | Not specified |
| CNA | Red Hat | Red Hat OpenShift Container Platform 4 | Not specified | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | RUGGEDCOM RST2428P | affected V3.2 custom | Not specified |
| ADP | Siemens | SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 Family | affected V3.2 custom | Not specified |
| ADP | Siemens | SCALANCE XCM-/XRM-/XCH-/XRH-300 Family | affected V3.2 custom | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| cert-portal.siemens.com/productcert/html/ssa-398330.html | 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e | cert-portal.siemens.com | |
| blog.hartwork.org/posts/expat-2-7-0-released | af854a3a-2127-422b-91ae-364da2661108 | blog.hartwork.org | |
| access.redhat.com/errata/RHSA-2025:4449 | [email protected] | access.redhat.com | |
| seclists.org/fulldisclosure/2025/May/7 | af854a3a-2127-422b-91ae-364da2661108 | seclists.org | |
| bugzilla.suse.com/show_bug.cgi | af854a3a-2127-422b-91ae-364da2661108 | bugzilla.suse.com | |
| access.redhat.com/errata/RHSA-2025:3913 | [email protected] | access.redhat.com | |
| seclists.org/fulldisclosure/2025/May/10 | af854a3a-2127-422b-91ae-364da2661108 | seclists.org | |
| ubuntu.com/security/CVE-2024-8176 | af854a3a-2127-422b-91ae-364da2661108 | ubuntu.com | |
| seclists.org/fulldisclosure/2025/May/6 | af854a3a-2127-422b-91ae-364da2661108 | seclists.org | |
| access.redhat.com/errata/RHSA-2025:22842 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2025:22607 | [email protected] | access.redhat.com | |
| bugzilla.redhat.com/show_bug.cgi | [email protected] | bugzilla.redhat.com | |
| www.openwall.com/lists/oss-security/2025/03/15/1 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | |
| github.com/libexpat/libexpat/issues/893 | [email protected] | github.com | |
| www.kb.cert.org/vuls/id/760160 | af854a3a-2127-422b-91ae-364da2661108 | www.kb.cert.org | |
| access.redhat.com/errata/RHSA-2025:7512 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2025:22033 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2025:7444 | [email protected] | access.redhat.com | |
| github.com/libexpat/libexpat/blob/R_2_7_0/expat/Changes | af854a3a-2127-422b-91ae-364da2661108 | github.com | |
| seclists.org/fulldisclosure/2025/May/11 | af854a3a-2127-422b-91ae-364da2661108 | seclists.org | |
| access.redhat.com/errata/RHSA-2025:4447 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2025:22785 | [email protected] | access.redhat.com | |
| www.openwall.com/lists/oss-security/2025/09/24/11 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | |
| access.redhat.com/errata/RHSA-2025:4048 | [email protected] | access.redhat.com | |
| security-tracker.debian.org/tracker/CVE-2024-8176 | af854a3a-2127-422b-91ae-364da2661108 | security-tracker.debian.org | |
| seclists.org/fulldisclosure/2025/May/8 | af854a3a-2127-422b-91ae-364da2661108 | seclists.org | |
| access.redhat.com/errata/RHSA-2025:22034 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2025:3734 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2025:13681 | [email protected] | access.redhat.com | |
| access.redhat.com/security/cve/CVE-2024-8176 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2025:4448 | [email protected] | access.redhat.com | |
| github.com/libexpat/libexpat/pull/973 | [email protected] | github.com | |
| access.redhat.com/errata/RHSA-2025:22035 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2025:3531 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2025:4446 | [email protected] | access.redhat.com | |
| cert-portal.siemens.com/productcert/html/ssa-355557.html | 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e | cert-portal.siemens.com | |
| access.redhat.com/errata/RHSA-2025:22871 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2025:8385 | [email protected] | access.redhat.com | |
| gitlab.alpinelinux.org/alpine/aports/-/commit/d068c3ff36fc6f4789988a09c69b434db757db53 | af854a3a-2127-422b-91ae-364da2661108 | gitlab.alpinelinux.org | |
| seclists.org/fulldisclosure/2025/May/12 | af854a3a-2127-422b-91ae-364da2661108 | seclists.org | |
| security.netapp.com/advisory/ntap-20250328-0009 | af854a3a-2127-422b-91ae-364da2661108 | security.netapp.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: This issue was discovered by Jann Horn (Google Project Zero), Sandipan Roy (Red Hat), Sebastian Pipping (libexpat), and Tomas Korbar (Red Hat). (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2024-06-12T00:00:00.000Z | Reported to Red Hat. |
| CNA | 2025-03-13T13:51:54.957Z | Made public. |
Workarounds
CNA: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
There are currently no legacy QID mappings associated with this CVE.