cve.bz

CVE-2024-8176 Uncontrolled Recursion

7.5 highEPSS 1.4%Fix available

High (7.5). EPSS 1.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 72nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-03-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-674 Uncontrolled Recursion
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 10: fixed in 0:2.7.1-1.el10_0
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:2.2.5-17.el8_10
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:1.51.0-11.el8_10
  • Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support: fixed in 0:2.2.10-1.el8_2
  • Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support: fixed in 0:1.51.0-5.el8_2.2
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support: fixed in 0:2.2.10-1.el8_4
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support: fixed in 0:1.51.0-5.el8_4.2
  • Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On: fixed in 0:2.2.10-1.el8_4
  • Debian, Ubuntu, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Alpine, Azure Linux, Alpaquita, BellSoft Hardened Containers: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2024-8176 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-8176?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-8176?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-8176 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 100:2.7.1-1.el10_0
Red Hat Enterprise Linux 80:2.2.5-17.el8_10
Red Hat Enterprise Linux 80:1.51.0-11.el8_10
Red Hat Enterprise Linux 8.2 Advanced Update Support0:2.2.10-1.el8_2
Red Hat Enterprise Linux 8.2 Advanced Update Support0:1.51.0-5.el8_2.2
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support0:2.2.10-1.el8_4
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support0:1.51.0-5.el8_4.2
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On0:2.2.10-1.el8_4
Red Hat Enterprise Linux 8.4 Telecommunications Update Service0:1.51.0-5.el8_4.2
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions0:1.51.0-5.el8_4.2
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support0:2.2.10-1.el8_6
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support0:1.51.0-6.el8_6.1
Red Hat Enterprise Linux 8.6 Telecommunications Update Service0:2.2.10-1.el8_6
Red Hat Enterprise Linux 8.6 Telecommunications Update Service0:1.51.0-6.el8_6.1
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions0:2.2.10-1.el8_6
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions0:1.51.0-6.el8_6.1
Red Hat Enterprise Linux 8.8 Extended Update Support0:1.51.0-8.el8_8.1
Red Hat Enterprise Linux 8.8 Telecommunications Update Service0:2.2.10-1.el8_8
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions0:2.2.10-1.el8_8
Red Hat Enterprise Linux 90:2.5.0-3.el9_5.3
Red Hat Enterprise Linux 90:2.5.0-5.el9_6
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions0:2.2.10-12.el9_0.4
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions0:2.5.0-1.el9_2.3
Red Hat Enterprise Linux 9.4 Extended Update Support0:2.5.0-2.el9_4.3
Red Hat DevWorkspace Operator 0.330.33-1744075017
Red Hat Discovery 1.141.14.3-1748529279
Red Hat Discovery 1.141.14.2-1748467619

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12expat2.5.0-1+deb12u2DEBIAN-CVE-2024-8176
Debian12libxmltokno fix listedDEBIAN-CVE-2024-8176
Debian13, 14expat2.7.0-1DEBIAN-CVE-2024-8176
Ubuntu16.04:LTSgdcm, tdom, smart and 4 moreno fix listedUBUNTU-CVE-2024-8176
Ubuntu18.04:LTSgdcm, tdom, vnc4 and 5 moreno fix listedUBUNTU-CVE-2024-8176
Ubuntu20.04:LTS, 22.04:LTStdom, wbxml2, cadaver and 2 moreno fix listedUBUNTU-CVE-2024-8176
Ubuntu22.04:LTSexpat2.4.7-1ubuntu0.6UBUNTU-CVE-2024-8176 USN-7424-1
Ubuntu24.04:LTSexpat2.6.1-2ubuntu0.3UBUNTU-CVE-2024-8176 USN-7424-1
Ubuntu24.04:LTStdom, wbxml2, cadaver and 1 moreno fix listedUBUNTU-CVE-2024-8176
Ubuntu25.10expat2.7.1-1UBUNTU-CVE-2024-8176
Ubuntu25.10, 26.10tdom, wbxml2, cadaver and 3 moreno fix listedUBUNTU-CVE-2024-8176
Ubuntu26.04:LTStdom, wbxml2, cadaver and 2 moreno fix listedUBUNTU-CVE-2024-8176
UbuntuPro:14.04:LTSvtk, vnc4, coin3 and 2 moreno fix listedUBUNTU-CVE-2024-8176
UbuntuPro:16.04:LTSvtk, vnc4, ayttm and 6 moreno fix listedUBUNTU-CVE-2024-8176
UbuntuPro:18.04:LTScoin3, expat, swish-e and 2 moreno fix listedUBUNTU-CVE-2024-8176
3 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseosexpat, expat-devel, expat-debuginfo and 1 more0:2.2.5-17.el8_10RHSA-2025:3913
Red Hatenterprise_linux:8::baseosxmlrpc-c, xmlrpc-c-client, xmlrpc-c-debuginfo and 5 more0:1.51.0-11.el8_10RHSA-2025:4048
Red Hatenterprise_linux:8::crbxmlrpc-c-c++, xmlrpc-c-devel, xmlrpc-c-client++ and 6 more0:1.51.0-11.el8_10RHSA-2025:4048
Red Hatenterprise_linux:9::appstreamexpat-devel, expat-debuginfo, expat-debugsource0:2.5.0-3.el9_5.3RHSA-2025:3531
Red Hatenterprise_linux:9::appstreamexpat-devel, expat-debuginfo, expat-debugsource0:2.5.0-5.el9_6RHSA-2025:7444
Red Hatenterprise_linux:9::baseosexpat, expat-debuginfo, expat-debugsource0:2.5.0-3.el9_5.3RHSA-2025:3531
Red Hatenterprise_linux:9::baseosexpat, expat-debuginfo, expat-debugsource0:2.5.0-5.el9_6RHSA-2025:7444
Red Hatenterprise_linux:10.0expat, expat-devel, expat-debuginfo and 1 more0:2.7.1-1.el10_0RHSA-2025:7512
Red Hatrhel_aus:8.2::baseosexpat0:2.2.10-1.el8_2RHSA-2025:22871
Red Hatrhel_aus:8.2::baseosxmlrpc-c, xmlrpc-c-client, xmlrpc-c-debuginfo and 5 more0:1.51.0-5.el8_2.2RHSA-2025:4447
Red Hatrhel_aus:8.4::baseos, rhel_e4s:8.4::baseos, rhel_tus:8.4::baseosxmlrpc-c, xmlrpc-c-client, xmlrpc-c-debuginfo and 5 more0:1.51.0-5.el8_4.2RHSA-2025:4448
Red Hatrhel_aus:8.4::baseos, rhel_eus_long_life:8.4::baseosexpat0:2.2.10-1.el8_4RHSA-2025:22785
8 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Micro 5.1 and 3 moreexpat2.7.1-150000.3.36.1SUSE-SU-2025:1186-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 11 moreexpat2.7.1-150400.3.28.1SUSE-SU-2025:1201-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 10 moreexpat2.8.5-150400.3.40.1SUSE-SU-2026:4623-1
SUSELinux Enterprise Module for Basesystem 15 SP7expat2.7.1-150700.3.3.1SUSE-SU-2025:03239-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5expat2.7.1-21.43.1SUSE-SU-2025:1295-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5expat2.8.5-21.55.1SUSE-SU-2026:4615-1
SUSELinux Micro 6.0expat2.7.1-1.1SUSE-SU-2025:20207-1
SUSELinux Micro 6.0expat2.8.5-159998.1.1SUSE-SU-2026:24323-1
SUSELinux Micro 6.1expat2.7.1-slfo.1.1_1.1SUSE-SU-2025:20311-1
openSUSELeap 15.6expat2.7.1-150400.3.28.1SUSE-SU-2025:1201-1
openSUSETumbleweedexpat2.7.1-1.1openSUSE-SU-2025:14952-1
AlmaLinux8expat, expat-devel2.2.5-17.el8_10ALSA-2025:3913
AlmaLinux8xmlrpc-c, xmlrpc-c-c++, xmlrpc-c-devel and 2 more1.51.0-11.el8_10ALSA-2025:4048
AlmaLinux9expat, expat-devel2.5.0-3.el9_5.3ALSA-2025:3531
AlmaLinux9expat, expat-devel2.5.0-5.el9_6ALSA-2025:7444
AlmaLinux10expat, expat-devel2.7.1-1.el10_0ALSA-2025:7512
Rocky Linux8expat0:2.2.5-17.el8_10RLSA-2025:3913
Rocky Linux8xmlrpc-c0:1.51.0-11.el8_10RLSA-2025:4048
Rocky Linux9expat0:2.5.0-3.el9_5.3RLSA-2025:3531
Rocky Linux10expat0:2.7.1-1.el10_0RLSA-2025:7512
Alpinev3.18, v3.19, v3.20 and 4 moreexpat2.7.0-r0ALPINE-CVE-2024-8176
Azure Linux2expat2.6.4-1AZL-58641
Azure Linux3expat2.6.4-1AZL-58671
Alpaquita23, streamexpat2.7.0-r1BELL-CVE-2024-8176
BellSoft Hardened Containers23, streamexpat2.7.0-r1BELL-CVE-2024-8176

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

All supported Red Hat offerings are built with the compilation flag (-fstack-clash-protection) which reduces the impact to Moderate. This build configuration blocks the possibility of an attacker gaining arbitrary code execution even if a stack-clash vulnerability, like this one, could be exploited.

This vulnerability is rated Moderate because Red Hat builds use the `-fstack-clash-protection` compiler flag, which mitigates the risk of arbitrary code execution from stack overflows. While the flaw allows a crash via uncontrolled recursion in XML parsing, the hardened stack layout prevents reliable memory corruption, limiting the impact to a Denial of Service (DoS) scenario.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10expat-0:2.7.1-1.el10_0Fixed 2025-05-13RHSA-2025:7512
Red Hat Enterprise Linux 8expat-0:2.2.5-17.el8_10Fixed 2025-04-15RHSA-2025:3913
Red Hat Enterprise Linux 8xmlrpc-c-0:1.51.0-11.el8_10Fixed 2025-04-23RHSA-2025:4048
Red Hat Enterprise Linux 8.2 Advanced Update Supportexpat-0:2.2.10-1.el8_2Fixed 2025-12-09RHSA-2025:22871
Red Hat Enterprise Linux 8.2 Advanced Update Supportxmlrpc-c-0:1.51.0-5.el8_2.2Fixed 2025-05-05RHSA-2025:4447
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportexpat-0:2.2.10-1.el8_4Fixed 2025-12-04RHSA-2025:22785
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportxmlrpc-c-0:1.51.0-5.el8_4.2Fixed 2025-05-05RHSA-2025:4448
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onexpat-0:2.2.10-1.el8_4Fixed 2025-12-04RHSA-2025:22785
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicexmlrpc-c-0:1.51.0-5.el8_4.2Fixed 2025-05-05RHSA-2025:4448
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionsxmlrpc-c-0:1.51.0-5.el8_4.2Fixed 2025-05-05RHSA-2025:4448
Red Hat Enterprise Linux 6compat-expat1Out of support scope
Red Hat Enterprise Linux 6expatOut of support scope
Red Hat Enterprise Linux 7expatOut of support scope
Red Hat Enterprise Linux 7firefoxOut of support scope
Red Hat Enterprise Linux 7thunderbirdOut of support scope
Red Hat Enterprise Linux 8firefoxAffected
Red Hat Enterprise Linux 8lua-expatNot affected
Red Hat Enterprise Linux 8mingw-expatAffected
Red Hat Enterprise Linux 8thunderbirdAffected
Red Hat Enterprise Linux 9firefoxAffected
23 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-8176.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-279-05Hitachi Energy REB5002026-09-29EnergyREB500 versions 8.3.3.1 and priornone listed
ICSA-26-155-02Hitachi Energy ITT600 Explorer2026-05-26EnergyITT600 Explorer before version 2.1 SP6ITT600 Explorer version 2.1 SP6
ICSA-26-062-03Hitachi Energy RTU500 Product (Update A)2026-02-24EnergyRTU500 series CMU Firmware version 12.7.1 – 12.7.7, RTU500 series CMU Firmware version 13.5.1 – 13.5.4, RTU500 series CMU Firmware version 13.6.1 – 13.6.2 and 2 morenone listed
ICSA-25-226-07Siemens Third-Party Components in SINEC OS2025-08-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesRUGGEDCOM RST2428P (6GK6242-6PA00), SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family, SCALANCE XCM-/XRM-/XCH-/XRH-300 familynone listed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-230 Serialized Data with Nested Payloads Likelihood: Medium · Severity: High
  • CAPEC-231 Oversized Serialized Data Payloads Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON