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

- Severity: High 7.5 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.35%, higher than 72% of CVEs (2026-12-01)
- Published: 2025-03-14T08:19:48.962Z
- Modified: 2026-11-24T07:17:10.323Z
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- libexpat: before 2.7.0
- expat: no versions given (not affected: from 0:2.7.1-1.el10_0 before *; from 0:2.2.5-17.el8_10 before *; from 0:2.2.10-1.el8_2 before *; from 0:2.2.10-1.el8_4 before *; from 0:2.2.10-1.el8_6 before *; from 0:2.2.10-1.el8_8 before *; from 0:2.5.0-3.el9_5.3 before *; from 0:2.5.0-5.el9_6 before *; from 0:2.2.10-12.el9_0.4 before *; from 0:2.5.0-1.el9_2.3 before *; from 0:2.5.0-2.el9_4.3 before *)
- xmlrpc-c: no versions given (not affected: from 0:1.51.0-11.el8_10 before *; from 0:1.51.0-5.el8_2.2 before *; from 0:1.51.0-5.el8_4.2 before *; from 0:1.51.0-6.el8_6.1 before *; from 0:1.51.0-8.el8_8.1 before *)
- devworkspace/devworkspace-project-clone-rhel9: no versions given (not affected: from 0.33-1744075017 before *)
- discovery/discovery-server-rhel9: no versions given (not affected: from 1.14.3-1748529279 before *)
- discovery/discovery-ui-rhel9: no versions given (not affected: from 1.14.2-1748467619 before *)
- compat-expat1: no versions given
- firefox: no versions given
- thunderbird: no versions given
- lua-expat: no versions given
- mingw-expat: no versions given
- firefox:flatpak/firefox: no versions given
- thunderbird:flatpak/thunderbird: no versions given
- openshift/ose-rhel-coreos-8: no versions given
- openshift/ose-rhel-coreos-9: no versions given

## References

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

## Sources

- CVE List: [CVE-2024-8176](https://www.cve.org/CVERecord?id=CVE-2024-8176), CVE Terms of Use, modified 2026-11-24
- NVD: [CVE-2024-8176](https://nvd.nist.gov/vuln/detail/CVE-2024-8176), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2024-8176 · Whole record: https://cve.day/CVE-2024-8176.json · Rebuilt by cve.day 2026-11-25T22:58:52.288Z
