# CVE-2024-8176: Libexpat: expat: improper restriction of xml entity expansion depth in libexpat

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.62% (percentile 76, 2026-11-26)
- **CWE:** CWE-674
- **Published:** 2025-03-14T08:19:48.962Z
- **Modified:** 2026-11-24T07:17:10.323Z

## Who should check

- Anyone running libexpat \< 2.7.0
- Anyone running Red Hat Enterprise Linux 10 all versions
- Anyone running Red Hat Enterprise Linux 8 all versions
- Anyone running Red Hat Enterprise Linux 8.2 Advanced Update Support all versions
- Anyone running Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support all versions
- Anyone running Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On all versions
- Anyone running Red Hat Enterprise Linux 8.4 Telecommunications Update Service all versions
- Anyone running Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions all versions

## 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.

## Affected and fixed versions

- libexpat: \< 2.7.0 (cvelist)
- Red Hat Enterprise Linux 10: all versions (cvelist)
- Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Enterprise Linux 8.2 Advanced Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 8.2 Advanced Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On: all versions (cvelist)
- Red Hat Enterprise Linux 8.4 Telecommunications Update Service: all versions (cvelist)
- Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions: all versions (cvelist)
- Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 8.6 Telecommunications Update Service: all versions (cvelist)
- Red Hat Enterprise Linux 8.6 Telecommunications Update Service: all versions (cvelist)
- Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions: all versions (cvelist)
- Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions: all versions (cvelist)
- Red Hat Enterprise Linux 8.8 Extended Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 8.8 Telecommunications Update Service: all versions (cvelist)
- Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions: all versions (cvelist)
- Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions: all versions (cvelist)
- Red Hat Enterprise Linux 9.4 Extended Update Support: all versions (cvelist)
- Red Hat JBoss Core Services 2.4.62.SP1: see vendor advisory (cvelist)
- Red Hat DevWorkspace Operator 0.33: all versions (cvelist)
- Red Hat Discovery 1.14: all versions (cvelist)
- Red Hat Discovery 1.14: all versions (cvelist)
- Red Hat Enterprise Linux 6: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 6: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 7: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 7: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 7: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Enterprise Linux 8: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat OpenShift Container Platform 4: all versions (cvelist)
- Red Hat OpenShift Container Platform 4: all versions (cvelist)

## Mitigation

- Upgrade libexpat to 2.7.0 or later.
- Vendor 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-8176. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-8176.md
Affected: libexpat < 2.7.0; Red Hat Enterprise Linux 10 all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8.2 Advanced Update Support all versions; Red Hat Enterprise Linux 8.2 Advanced Update Support all versions; Red Hat Enterprise Linu…
Fixed in: libexpat 2.7.0

Steps:
1. Search this machine and project for libexpat, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 8.2 Advanced Update Support, Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support, Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-8176 being exploited?

There is no confirmed exploitation: CVE-2024-8176 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.62% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-8176?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-8176?

libexpat \< 2.7.0; Red Hat Enterprise Linux 10 all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8.2 Advanced Update Support all versions; Red Hat Enterprise Linux 8.2 Advanced Update Support all versions; Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support all versions; Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support all versions; Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On all versions; Red Hat Enterprise Linux 8.4 Telecommunications Update Service all versions; Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions all versions; Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support all versions; Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support all versions; Red Hat Enterprise Linux 8.6 Telecommunications Update Service all versions; Red Hat Enterprise Linux 8.6 Telecommunications Update Service all versions; Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions all versions; Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions all versions; Red Hat Enterprise Linux 8.8 Extended Update Support all versions; Red Hat Enterprise Linux 8.8 Telecommunications Update Service all versions; Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions all versions; Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions all versions; Red Hat Enterprise Linux 9.4 Extended Update Support all versions; Red Hat JBoss Core Services 2.4.62.SP1; Red Hat DevWorkspace Operator 0.33 all versions; Red Hat Discovery 1.14 all versions; Red Hat Discovery 1.14 all versions; Red Hat Enterprise Linux 6; Red Hat Enterprise Linux 6; Red Hat Enterprise Linux 7; Red Hat Enterprise Linux 7; Red Hat Enterprise Linux 7; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat OpenShift Container Platform 4 all versions; Red Hat OpenShift Container Platform 4 all versions.

### Is there a fix for CVE-2024-8176?

Yes. Fixed in libexpat 2.7.0. Upgrade libexpat to 2.7.0 or later. Vendor 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.

### How do I check if I'm affected by CVE-2024-8176?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://access.redhat.com/errata/RHSA-2025:13681>
- vendor: <https://access.redhat.com/errata/RHSA-2025:22033>
- vendor: <https://access.redhat.com/errata/RHSA-2025:22034>
- vendor: <https://access.redhat.com/errata/RHSA-2025:22035>
- vendor: <https://access.redhat.com/errata/RHSA-2025:22607>
- vendor: <https://access.redhat.com/errata/RHSA-2025:22785>
- vendor: <https://access.redhat.com/errata/RHSA-2025:22842>
- vendor: <https://access.redhat.com/errata/RHSA-2025:22871>
- vendor: <https://access.redhat.com/errata/RHSA-2025:3531>
- vendor: <https://access.redhat.com/errata/RHSA-2025:3734>
- vendor: <https://access.redhat.com/errata/RHSA-2025:3913>
- vendor: <https://access.redhat.com/errata/RHSA-2025:4048>
- vendor: <https://access.redhat.com/errata/RHSA-2025:4446>
- vendor: <https://access.redhat.com/errata/RHSA-2025:4447>
- vendor: <https://access.redhat.com/errata/RHSA-2025:4448>
- vendor: <https://access.redhat.com/errata/RHSA-2025:4449>
- vendor: <https://access.redhat.com/errata/RHSA-2025:7444>
- vendor: <https://access.redhat.com/errata/RHSA-2025:7512>
- vendor: <https://access.redhat.com/errata/RHSA-2025:8385>
- patch: <https://github.com/libexpat/libexpat/pull/973>
- patch: <https://gitlab.alpinelinux.org/alpine/aports/-/commit/d068c3ff36fc6f4789988a09c69b434db757db53>
- other: <https://access.redhat.com/security/cve/CVE-2024-8176>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2310137>
- other: <https://github.com/libexpat/libexpat/issues/893>
- other: <http://www.openwall.com/lists/oss-security/2025/03/15/1>
- other: <https://blog.hartwork.org/posts/expat-2-7-0-released/>
- other: <https://github.com/libexpat/libexpat/blob/R_2_7_0/expat/Changes#L40-L52>
- other: <https://bugzilla.suse.com/show_bug.cgi?id=1239618>
- other: <https://ubuntu.com/security/CVE-2024-8176>
- other: <https://security-tracker.debian.org/tracker/CVE-2024-8176>
- other: <https://security.netapp.com/advisory/ntap-20250328-0009/>
- other: <https://www.kb.cert.org/vuls/id/760160>
- other: <http://seclists.org/fulldisclosure/2025/May/12>
- other: <http://seclists.org/fulldisclosure/2025/May/11>
- other: <http://seclists.org/fulldisclosure/2025/May/10>
- other: <http://seclists.org/fulldisclosure/2025/May/8>
- other: <http://seclists.org/fulldisclosure/2025/May/7>
- other: <http://seclists.org/fulldisclosure/2025/May/6>
- other: <http://www.openwall.com/lists/oss-security/2025/09/24/11>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-8176>

HTML: <https://flawdb.com/CVE-2024-8176> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-8176>
