# Libexpat: expat: improper restriction of xml entity expansion depth in libexpat

CVE record · `CVE-2024-8176`

- **Identifiers:** `CVE-2024-8176`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** No
- **CNA:** redhat
- **Weakness (CWE):** [CWE-674](https://cwe.mitre.org/data/definitions/674.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md)
- **Technologies:** [Red Hat Enterprise Linux 10](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-10.md) · [Red Hat Enterprise Linux 8](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-8.md) · [Red Hat Enterprise Linux 8.2 Advanced Update Support](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-8-2-advanced-update-support.md) · [Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-8-4-advanced-mission-critical-update-support.md) · [Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-8-4-extended-update-support-long-life-add-on.md) · [Red Hat Enterprise Linux 8.4 Telecommunications Update Service](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-8-4-telecommunications-update-service.md) · [Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-8-4-update-services-for-sap-solutions.md) · [Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-8-6-advanced-mission-critical-update-support.md) · [Red Hat Enterprise Linux 8.6 Telecommunications Update Service](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-8-6-telecommunications-update-service.md) · [Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-8-6-update-services-for-sap-solutions.md) · [Red Hat Enterprise Linux 8.8 Extended Update Support](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-8-8-extended-update-support.md) · [Red Hat Enterprise Linux 8.8 Telecommunications Update Service](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-8-8-telecommunications-update-service.md) · [Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-8-8-update-services-for-sap-solutions.md) · [Red Hat Enterprise Linux 9](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-9.md) · [Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-9-0-update-services-for-sap-solutions.md) · [Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-9-2-update-services-for-sap-solutions.md) · [Red Hat Enterprise Linux 9.4 Extended Update Support](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-9-4-extended-update-support.md) · [Red Hat JBoss Core Services 2.4.62.SP1](https://agentprime.io/advisories/technology/red-hat-jboss-core-services-2-4-62-sp1.md) · [Red Hat DevWorkspace Operator 0.33](https://agentprime.io/advisories/technology/red-hat-devworkspace-operator-0-33.md) · [Red Hat Discovery 1.14](https://agentprime.io/advisories/technology/red-hat-discovery-1-14.md)
- **Published:** 14 Mar 2025
- **Updated:** 5 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: redhat) at 14 Mar 2025, 08:19 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Not given. Product: Not given.
  - affected: `before 2.7.0` (semver)
  - Other versions: unaffected
  - Package name: `libexpat`
  - Collection: `https://github.com/libexpat/libexpat/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 10.
  - unaffected: `0:2.7.1-1.el10_0 to before *` (rpm)
  - Other versions: affected
  - Package name: `expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.
  - unaffected: `0:2.2.5-17.el8_10 to before *` (rpm)
  - Other versions: affected
  - Package name: `expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.
  - unaffected: `0:1.51.0-11.el8_10 to before *` (rpm)
  - Other versions: affected
  - Package name: `xmlrpc-c`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.2 Advanced Update Support.
  - unaffected: `0:2.2.10-1.el8_2 to before *` (rpm)
  - Other versions: affected
  - Package name: `expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.2 Advanced Update Support.
  - unaffected: `0:1.51.0-5.el8_2.2 to before *` (rpm)
  - Other versions: affected
  - Package name: `xmlrpc-c`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support.
  - unaffected: `0:2.2.10-1.el8_4 to before *` (rpm)
  - Other versions: affected
  - Package name: `expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support.
  - unaffected: `0:1.51.0-5.el8_4.2 to before *` (rpm)
  - Other versions: affected
  - Package name: `xmlrpc-c`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On.
  - unaffected: `0:2.2.10-1.el8_4 to before *` (rpm)
  - Other versions: affected
  - Package name: `expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.4 Telecommunications Update Service.
  - unaffected: `0:1.51.0-5.el8_4.2 to before *` (rpm)
  - Other versions: affected
  - Package name: `xmlrpc-c`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions.
  - unaffected: `0:1.51.0-5.el8_4.2 to before *` (rpm)
  - Other versions: affected
  - Package name: `xmlrpc-c`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support.
  - unaffected: `0:2.2.10-1.el8_6 to before *` (rpm)
  - Other versions: affected
  - Package name: `expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support.
  - unaffected: `0:1.51.0-6.el8_6.1 to before *` (rpm)
  - Other versions: affected
  - Package name: `xmlrpc-c`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.6 Telecommunications Update Service.
  - unaffected: `0:2.2.10-1.el8_6 to before *` (rpm)
  - Other versions: affected
  - Package name: `expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.6 Telecommunications Update Service.
  - unaffected: `0:1.51.0-6.el8_6.1 to before *` (rpm)
  - Other versions: affected
  - Package name: `xmlrpc-c`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions.
  - unaffected: `0:2.2.10-1.el8_6 to before *` (rpm)
  - Other versions: affected
  - Package name: `expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions.
  - unaffected: `0:1.51.0-6.el8_6.1 to before *` (rpm)
  - Other versions: affected
  - Package name: `xmlrpc-c`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.8 Extended Update Support.
  - unaffected: `0:1.51.0-8.el8_8.1 to before *` (rpm)
  - Other versions: affected
  - Package name: `xmlrpc-c`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.8 Telecommunications Update Service.
  - unaffected: `0:2.2.10-1.el8_8 to before *` (rpm)
  - Other versions: affected
  - Package name: `expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions.
  - unaffected: `0:2.2.10-1.el8_8 to before *` (rpm)
  - Other versions: affected
  - Package name: `expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 9.
  - unaffected: `0:2.5.0-3.el9_5.3 to before *` (rpm)
  - Other versions: affected
  - Package name: `expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 9.
  - unaffected: `0:2.5.0-5.el9_6 to before *` (rpm)
  - Other versions: affected
  - Package name: `expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 9.
  - unaffected: `0:2.5.0-3.el9_5.3 to before *` (rpm)
  - Other versions: affected
  - Package name: `expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 9.
  - unaffected: `0:2.5.0-5.el9_6 to before *` (rpm)
  - Other versions: affected
  - Package name: `expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions.
  - unaffected: `0:2.2.10-12.el9_0.4 to before *` (rpm)
  - Other versions: affected
  - Package name: `expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions.
  - unaffected: `0:2.5.0-1.el9_2.3 to before *` (rpm)
  - Other versions: affected
  - Package name: `expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 9.4 Extended Update Support.
  - unaffected: `0:2.5.0-2.el9_4.3 to before *` (rpm)
  - Other versions: affected
  - Package name: `expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat JBoss Core Services 2.4.62.SP1.
  - No versions given
  - Other versions: unaffected
  - Package name: `expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: DevWorkspace Operator 0.33.
  - unaffected: `0.33-1744075017 to before *` (rpm)
  - Other versions: affected
  - Package name: `devworkspace/devworkspace-project-clone-rhel9`
  - Collection: `https://catalog.redhat.com/software/containers/`
- Vendor: Red Hat. Product: Red Hat Discovery 1.14.
  - unaffected: `1.14.3-1748529279 to before *` (rpm)
  - Other versions: affected
  - Package name: `discovery/discovery-server-rhel9`
  - Collection: `https://catalog.redhat.com/software/containers/`
- Vendor: Red Hat. Product: Red Hat Discovery 1.14.
  - unaffected: `1.14.2-1748467619 to before *` (rpm)
  - Other versions: affected
  - Package name: `discovery/discovery-ui-rhel9`
  - Collection: `https://catalog.redhat.com/software/containers/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 6.
  - No versions given
  - Other versions: unknown
  - Package name: `compat-expat1`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 6.
  - No versions given
  - Other versions: unknown
  - Package name: `expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 7.
  - No versions given
  - Other versions: unknown
  - Package name: `expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 7.
  - No versions given
  - Other versions: unknown
  - Package name: `firefox`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 7.
  - No versions given
  - Other versions: unknown
  - Package name: `thunderbird`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.
  - No versions given
  - Other versions: affected
  - Package name: `firefox`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.
  - No versions given
  - Other versions: unaffected
  - Package name: `lua-expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.
  - No versions given
  - Other versions: affected
  - Package name: `mingw-expat`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.
  - No versions given
  - Other versions: affected
  - Package name: `thunderbird`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`

And 6 more products. The full list is on the CVE record: <https://www.cve.org/CVERecord?id=CVE-2024-8176>

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 7.5 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`, from CNA (redhat)

- **CISA KEV:** Not listed.
- **EPSS:** 0.014, the 71st percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 14 Mar 2025, 08:19 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2024-8176)
- 14 Mar 2025, 09:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2024-8176)

## Sources

- [CVE List: CVE-2024-8176](https://www.cve.org/CVERecord?id=CVE-2024-8176)
- [NVD: CVE-2024-8176](https://nvd.nist.gov/vuln/detail/CVE-2024-8176)

### References from the CNA

- <https://access.redhat.com/errata/RHSA-2025:13681> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2025:22033> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2025:22034> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2025:22035> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2025:22607> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2025:22785> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2025:22842> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2025:22871> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2025:3531> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2025:3734> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2025:3913> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2025:4048> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2025:4446> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2025:4447> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2025:4448> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2025:4449> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2025:7444> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2025:7512> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2025:8385> (vendor-advisory, redhat)
- <https://access.redhat.com/security/cve/CVE-2024-8176> (vdb-entry, redhat)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2310137> (issue-tracking, redhat)
- <https://github.com/libexpat/libexpat/issues/893>
- <https://github.com/libexpat/libexpat/pull/973>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2024-8176>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2024-8176/>. Everything for agents: <https://agentprime.io/llms.txt>.
