{"id":"CVE-2024-8176","title":"A stack overflow vulnerability exists in the libexpat library due to the way it handles recursive entity expansion in XML documents","summary":"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 ind…","severity":"high","cvss":7.5,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","cwe":["CWE-674"],"vendor":"Red Hat","product":"libexpat","affected":["libexpat < 2.7.0","expat (all versions)","expat (all versions)","xmlrpc-c (all versions)","expat (all versions)","xmlrpc-c (all versions)","expat (all versions)","xmlrpc-c (all versions)","expat (all versions)","xmlrpc-c (all versions)","xmlrpc-c (all versions)","expat (all versions)","xmlrpc-c (all versions)","expat (all versions)","xmlrpc-c (all versions)","expat (all versions)","xmlrpc-c (all versions)","xmlrpc-c (all versions)","expat (all versions)","expat (all versions)","expat (all versions)","expat (all versions)","expat (all versions)","expat (all versions)","expat (all versions)","expat (all versions)","expat (all versions)","devworkspace/devworkspace-project-clone-rhel9 (all versions)","discovery/discovery-server-rhel9 (all versions)","discovery/discovery-ui-rhel9 (all versions)","compat-expat1","expat","expat","firefox","thunderbird","firefox (all versions)","lua-expat","mingw-expat (all versions)","thunderbird (all versions)","firefox (all versions)","firefox:flatpak/firefox (all versions)","thunderbird (all versions)","thunderbird:flatpak/thunderbird (all versions)","rhcos (all versions)"],"published":"2025-03-14","updated":"2026-09-21","sourceUpdated":"2026-09-21T06:16:58.990","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2024-8176","references":[{"url":"https://access.redhat.com/errata/RHSA-2025:13681","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2025:22033","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2025:22034","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2025:22035","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2025:22607","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2025:22785","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2025:22842","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2025:22871","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2025:3531","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2025:3734","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2025:3913","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2025:4048","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2025:4446","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2025:4447","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2025:4448","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2025:4449","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2025:7444","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2025:7512","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2025:8385","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/security/cve/CVE-2024-8176","label":"secalert@redhat.com"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2310137","label":"secalert@redhat.com"},{"url":"https://github.com/libexpat/libexpat/issues/893","label":"secalert@redhat.com"},{"url":"https://github.com/libexpat/libexpat/pull/973","label":"secalert@redhat.com"},{"url":"http://seclists.org/fulldisclosure/2025/May/10","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://seclists.org/fulldisclosure/2025/May/11","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://seclists.org/fulldisclosure/2025/May/12","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://seclists.org/fulldisclosure/2025/May/6","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://seclists.org/fulldisclosure/2025/May/7","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://seclists.org/fulldisclosure/2025/May/8","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.openwall.com/lists/oss-security/2025/03/15/1","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.openwall.com/lists/oss-security/2025/09/24/11","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://blog.hartwork.org/posts/expat-2-7-0-released/","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1239618","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/libexpat/libexpat/blob/R_2_7_0/expat/Changes#L40-L52","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://gitlab.alpinelinux.org/alpine/aports/-/commit/d068c3ff36fc6f4789988a09c69b434db757db53","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-8176","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.netapp.com/advisory/ntap-20250328-0009/","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://ubuntu.com/security/CVE-2024-8176","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.kb.cert.org/vuls/id/760160","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-8176.json"},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-8176"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-8176"}],"tags":["nvd","cve.org","exploit-available","csaf","vex","red-hat"],"exploitAvailable":true,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-03-14T13:13:22.690073Z"},"epss":0.01326,"epssPercentile":0.69284,"exploits":{"github":1,"githubRepos":["https://github.com/uthrasri/Expat_2.6.2_CVE-2024-8176"],"checkedAt":"2026-09-21T15:27:06.159Z"},"ingestedAt":"2026-06-29T13:24:34.182Z","patched":["enterprise_linux_appstream_v_10","enterprise_linux_appstream_v_9","enterprise_linux_baseos_v_10","enterprise_linux_baseos_v_8","enterprise_linux_baseos_aus_v_8_2","enterprise_linux_baseos_aus_v_8_4","enterprise_linux_baseos_e4s_v_8_4","enterprise_linux_baseos_eus_extension_v_8_4","enterprise_linux_baseos_tus_v_8_4","enterprise_linux_baseos_aus_v_8_6","enterprise_linux_baseos_e4s_v_8_6","enterprise_linux_baseos_tus_v_8_6","enterprise_linux_baseos_e4s_v_8_8","enterprise_linux_baseos_eus_v_8_8","enterprise_linux_baseos_tus_v_8_8","enterprise_linux_baseos_e4s_v_9_0","enterprise_linux_baseos_e4s_v_9_2","enterprise_linux_baseos_eus_v_9_4","enterprise_linux_baseos_v_9","enterprise_linux_crb_v_8","codeready_linux_builder_eus_v_8_8","devworkspace_operator 0.33","discovery 1.14"],"slug":"CVE-2024-8176","body":"## Overview\n\nA 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Vendor advisories\n\n- **RHSA-2025:7512** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 10), Red Hat Enterprise Linux BaseOS (v. 10) · released 2025-05-13 · [advisory](https://access.redhat.com/errata/RHSA-2025:7512)\n- **RHSA-2025:3531** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 9), Red Hat Enterprise Linux BaseOS (v. 9) · released 2025-04-02 · [advisory](https://access.redhat.com/errata/RHSA-2025:3531)\n- **RHSA-2025:7444** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 9), Red Hat Enterprise Linux BaseOS (v. 9) · released 2025-05-13 · [advisory](https://access.redhat.com/errata/RHSA-2025:7444)\n- **RHSA-2025:3913** · Red Hat · fixed in: Red Hat Enterprise Linux BaseOS (v. 8) · released 2025-04-15 · [advisory](https://access.redhat.com/errata/RHSA-2025:3913)\n- **RHSA-2025:4048** · Red Hat · fixed in: Red Hat Enterprise Linux BaseOS (v. 8), Red Hat Enterprise Linux CRB (v. 8) · released 2025-04-23 · [advisory](https://access.redhat.com/errata/RHSA-2025:4048)\n- **RHSA-2025:22871** · Red Hat · fixed in: Red Hat Enterprise Linux BaseOS AUS (v. 8.2) · released 2025-12-09 · [advisory](https://access.redhat.com/errata/RHSA-2025:22871)\n- **RHSA-2025:4447** · Red Hat · fixed in: Red Hat Enterprise Linux BaseOS AUS (v. 8.2) · released 2025-05-05 · [advisory](https://access.redhat.com/errata/RHSA-2025:4447)\n- **RHSA-2025:22785** · Red Hat · fixed in: Red Hat Enterprise Linux BaseOS AUS (v.8.4), Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) · released 2025-12-04 · [advisory](https://access.redhat.com/errata/RHSA-2025:22785)\n- **RHSA-2025:4448** · Red Hat · fixed in: Red Hat Enterprise Linux BaseOS AUS (v.8.4), Red Hat Enterprise Linux BaseOS E4S (v.8.4), Red Hat Enterprise Linux BaseOS TUS (v.8.4) · released 2025-05-05 · [advisory](https://access.redhat.com/errata/RHSA-2025:4448)\n- **RHSA-2025:22842** · Red Hat · fixed in: Red Hat Enterprise Linux BaseOS AUS (v.8.6), Red Hat Enterprise Linux BaseOS E4S (v.8.6), Red Hat Enterprise Linux BaseOS TUS (v.8.6) · released 2025-12-09 · [advisory](https://access.redhat.com/errata/RHSA-2025:22842)\n- **RHSA-2025:4449** · Red Hat · fixed in: Red Hat Enterprise Linux BaseOS AUS (v.8.6), Red Hat Enterprise Linux BaseOS E4S (v.8.6), Red Hat Enterprise Linux BaseOS TUS (v.8.6) · released 2025-05-05 · [advisory](https://access.redhat.com/errata/RHSA-2025:4449)\n- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 · no fix planned: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat OpenShift Container Platform 4, Red Hat Enterprise Linux 8, … · updated 2026-09-21 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-8176.json)","depth":"midnight","depthScore":54,"depthScoreParts":{"impact":41.3,"likelihood":0.3,"exploitation":12,"ransomware":0},"changes":[{"seq":4775,"id":"CVE-2024-8176","ts":1788887205590,"field":"exploit_available","old":"false","new":"true"},{"seq":3658,"id":"CVE-2024-8176","ts":1788886322272,"field":"exploit_available","old":"true","new":"false"},{"seq":2509,"id":"CVE-2024-8176","ts":1788882989986,"field":"exploit_available","old":"false","new":"true"},{"seq":1538,"id":"CVE-2024-8176","ts":1788882403808,"field":"exploit_available","old":"true","new":"false"},{"seq":652,"id":"CVE-2024-8176","ts":1788881841355,"field":"exploit_available","old":"false","new":"true"}]}