CVE-2024-8176
Libexpat: expat: improper restriction of xml entity expansion depth in libexpat
- Published
- Updated
- Reserved
- Assigned by
- redhat
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. CISA's SSVC rates its exploitation: a proof of concept is public.
Timeline
ID reserved
By redhat
- 7 months later
· 7 months later
Published
- 20 months later
· 20 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVDNVD · Deferred | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 1.4% · top 28% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Weakness
Affected products
libexpat
- affected < 2.7.0
Red Hat · Red Hat Enterprise Linux 10
- unaffected 0:2.7.1-1.el10_0 – < *
Red Hat · Red Hat Enterprise Linux 8
- unaffected 0:2.2.5-17.el8_10 – < *
Red Hat · Red Hat Enterprise Linux 8
- unaffected 0:1.51.0-11.el8_10 – < *
Red Hat · Red Hat Enterprise Linux 8.2 Advanced Update Support
- unaffected 0:2.2.10-1.el8_2 – < *
Red Hat · Red Hat Enterprise Linux 8.2 Advanced Update Support
- unaffected 0:1.51.0-5.el8_2.2 – < *
Red Hat · Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- unaffected 0:2.2.10-1.el8_4 – < *
Red Hat · Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- unaffected 0:1.51.0-5.el8_4.2 – < *
Red Hat · Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
- unaffected 0:2.2.10-1.el8_4 – < *
Red Hat · Red Hat Enterprise Linux 8.4 Telecommunications Update Service
- unaffected 0:1.51.0-5.el8_4.2 – < *
Red Hat · Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
- unaffected 0:1.51.0-5.el8_4.2 – < *
Red Hat · Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
- unaffected 0:2.2.10-1.el8_6 – < *
Red Hat · Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
- unaffected 0:1.51.0-6.el8_6.1 – < *
Red Hat · Red Hat Enterprise Linux 8.6 Telecommunications Update Service
- unaffected 0:2.2.10-1.el8_6 – < *
Red Hat · Red Hat Enterprise Linux 8.6 Telecommunications Update Service
- unaffected 0:1.51.0-6.el8_6.1 – < *
Red Hat · Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
- unaffected 0:2.2.10-1.el8_6 – < *
Red Hat · Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
- unaffected 0:1.51.0-6.el8_6.1 – < *
Red Hat · Red Hat Enterprise Linux 8.8 Extended Update Support
- unaffected 0:1.51.0-8.el8_8.1 – < *
Red Hat · Red Hat Enterprise Linux 8.8 Telecommunications Update Service
- unaffected 0:2.2.10-1.el8_8 – < *
Red Hat · Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
- unaffected 0:2.2.10-1.el8_8 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:2.5.0-3.el9_5.3 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:2.5.0-5.el9_6 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:2.5.0-3.el9_5.3 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:2.5.0-5.el9_6 – < *
Red Hat · Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
- unaffected 0:2.2.10-12.el9_0.4 – < *
Red Hat · Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
- unaffected 0:2.5.0-1.el9_2.3 – < *
Red Hat · Red Hat Enterprise Linux 9.4 Extended Update Support
- unaffected 0:2.5.0-2.el9_4.3 – < *
Red Hat · Red Hat JBoss Core Services 2.4.62.SP1
All versions: unaffected
Red Hat · DevWorkspace Operator 0.33
- unaffected 0.33-1744075017 – < *
Red Hat · Red Hat Discovery 1.14
- unaffected 1.14.3-1748529279 – < *
Red Hat · Red Hat Discovery 1.14
- unaffected 1.14.2-1748467619 – < *
Red Hat · Red Hat Enterprise Linux 6
All versions: unknown
Red Hat · Red Hat Enterprise Linux 6
All versions: unknown
Red Hat · Red Hat Enterprise Linux 7
All versions: unknown
Red Hat · Red Hat Enterprise Linux 7
All versions: unknown
Red Hat · Red Hat Enterprise Linux 7
All versions: unknown
Red Hat · Red Hat Enterprise Linux 8
All versions: affected
Red Hat · Red Hat Enterprise Linux 8
All versions: unaffected
Red Hat · Red Hat Enterprise Linux 8
All versions: affected
Red Hat · Red Hat Enterprise Linux 8
All versions: affected
Red Hat · Red Hat Enterprise Linux 9
All versions: affected
Red Hat · Red Hat Enterprise Linux 9
All versions: affected
Red Hat · Red Hat Enterprise Linux 9
All versions: affected
Red Hat · Red Hat Enterprise Linux 9
All versions: affected
Red Hat · Red Hat OpenShift Container Platform 4
All versions: affected
Red Hat · Red Hat OpenShift Container Platform 4
All versions: affected
What to do
Workaround: 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.
References (41)
- RHSA-2025:13681 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:22033 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:22034 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:22035 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:22607 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:22785 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:22842 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:22871 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:3531 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:3734 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:3913 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:4048 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:4446 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:4447 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:4448 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:4449 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:7444 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:7512 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:8385 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2024-8176 (opens in a new tab)vdb-entryx_refsource_REDHAT
- RHBZ#2310137 (opens in a new tab)issue-trackingx_refsource_REDHAT
- https://github.com/libexpat/libexpat/issues/893 (opens in a new tab)
- https://github.com/libexpat/libexpat/pull/973 (opens in a new tab)
- http://www.openwall.com/lists/oss-security/2025/03/15/1 (opens in a new tab)
- https://blog.hartwork.org/posts/expat-2-7-0-released/ (opens in a new tab)
- https://github.com/libexpat/libexpat/blob/R_2_7_0/expat/Changes#L40-L52 (opens in a new tab)
- https://bugzilla.suse.com/show_bug.cgi?id=1239618 (opens in a new tab)
- https://ubuntu.com/security/CVE-2024-8176 (opens in a new tab)
- https://security-tracker.debian.org/tracker/CVE-2024-8176 (opens in a new tab)
- https://gitlab.alpinelinux.org/alpine/aports/-/commit/d068c3ff36fc6f4789988a09c69b434db757db53 (opens in a new tab)
- https://security.netapp.com/advisory/ntap-20250328-0009/ (opens in a new tab)
- https://www.kb.cert.org/vuls/id/760160 (opens in a new tab)
- http://seclists.org/fulldisclosure/2025/May/12 (opens in a new tab)
- http://seclists.org/fulldisclosure/2025/May/11 (opens in a new tab)
- http://seclists.org/fulldisclosure/2025/May/10 (opens in a new tab)
- http://seclists.org/fulldisclosure/2025/May/8 (opens in a new tab)
- http://seclists.org/fulldisclosure/2025/May/7 (opens in a new tab)
- http://seclists.org/fulldisclosure/2025/May/6 (opens in a new tab)
- http://www.openwall.com/lists/oss-security/2025/09/24/11 (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-355557.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2024-8176)Record last updated .