Libexpat: expat: improper restriction of xml entity expansion depth in libexpat
CVE-2024-8176Published 14 Mar 2025, 08:19 UTC
Real-world risk
3.8/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.5
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from redhat)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| ExpatUbiquitous | < 2.7.0 | 2.7.0 |
| Red Hat Enterprise LinuxUbiquitous | not stated | — |
| Red Hat OpenShift Container PlatformWidespread | not stated | — |
| Red Hat Discovery 1Common | not stated | — |
| DevWorkspace Operator 0.33Niche | not stated | — |
| Red Hat JBoss Core ServicesNiche | not stated | — |
What to do
Update to a fixed version: 2.7.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Denial of serviceCrash or resource exhaustion only | From the CVSS vector | 0.40 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- CISA SSVC: proof of concept
EPSS 1.4% chance of exploitation in 30 days (percentile 72), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together1.000
- Threat T3: Public proof of concept0.950
- 10 × impact 0.4 × prerequisites 1 × threat 0.953.800
- Rounded to one decimal between 0.1 and 103.8
Exploitation and evidence timeline
- 14 Mar 2025 Published
- 3 Dec 2026 CISA SSVC: proof of concept first seen
- 3 Dec 2026 Risk 3.8 (cvss fallback)
Weakness
CWE-674
References
- https://access.redhat.com/errata/RHSA-2025:13681redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:22033redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:22034redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:22035redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:22607redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:22785redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:22842redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:22871redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:3531redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:3734redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:3913redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:4048redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:4446redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:4447redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:4448redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:4449redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:7444redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:7512redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:8385redhat, vendor-advisory
- https://access.redhat.com/security/cve/CVE-2024-8176redhat, vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=2310137issue-tracking, redhat
- 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
- CVE-2024-8176 on CVE.org