Vulnerability · Published Mar 14, 2025 · Assigned by redhat

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

High 7.5

In plain English

A high-severity security flaw in libexpat. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 72% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.4%top 28.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10expat2.7.1-1.el10_0ALSA-2025:7512
AlmaLinux:8expat2.2.5-17.el8_10ALSA-2025:3913
AlmaLinux:9expat2.5.0-5.el9_6ALSA-2025:7444
AlmaLinux:9expat2.5.0-3.el9_5.3ALSA-2025:3531
AlmaLinux:10expat-devel2.7.1-1.el10_0ALSA-2025:7512
AlmaLinux:8expat-devel2.2.5-17.el8_10ALSA-2025:3913
AlmaLinux:9expat-devel2.5.0-5.el9_6ALSA-2025:7444
AlmaLinux:9expat-devel2.5.0-3.el9_5.3ALSA-2025:3531
AlmaLinux:8xmlrpc-c1.51.0-11.el8_10ALSA-2025:4048
AlmaLinux:8xmlrpc-c-c++1.51.0-11.el8_10ALSA-2025:4048
AlmaLinux:8xmlrpc-c-client1.51.0-11.el8_10ALSA-2025:4048
AlmaLinux:8xmlrpc-c-client++1.51.0-11.el8_10ALSA-2025:4048
AlmaLinux:8xmlrpc-c-devel1.51.0-11.el8_10ALSA-2025:4048
Alpine:v3.20expat2.7.0-r0ALPINE-CVE-2024-8176
Alpine:v3.21expat2.7.0-r0ALPINE-CVE-2024-8176
Alpine:v3.22expat2.7.0-r0ALPINE-CVE-2024-8176
Alpine:v3.23expat2.7.0-r0ALPINE-CVE-2024-8176
Alpine:v3.24expat2.7.0-r0ALPINE-CVE-2024-8176
Debian:12expat2.5.0-1+deb12u2DEBIAN-CVE-2024-8176
Debian:13expat2.7.0-1DEBIAN-CVE-2024-8176
Debian:14expat2.7.0-1DEBIAN-CVE-2024-8176
Debian:12libxmltokno fix listedDEBIAN-CVE-2024-8176
Rocky Linux:10expat0:2.7.1-1.el10_0RLSA-2025:7512
Rocky Linux:8expat0:2.2.5-17.el8_10RLSA-2025:3913
Rocky Linux:9expat0:2.5.0-3.el9_5.3RLSA-2025:3531
Rocky Linux:8xmlrpc-c0:1.51.0-11.el8_10RLSA-2025:4048
Ubuntu:22.04:LTScadaverno fix listedUBUNTU-CVE-2024-8176
Ubuntu:24.04:LTScadaverno fix listedUBUNTU-CVE-2024-8176
Ubuntu:25.10cadaverno fix listedUBUNTU-CVE-2024-8176
Ubuntu:26.04:LTScadaverno fix listedUBUNTU-CVE-2024-8176
Ubuntu:26.10cadaverno fix listedUBUNTU-CVE-2024-8176
Ubuntu:22.04:LTSexpat2.4.7-1ubuntu0.6USN-7424-1
Ubuntu:22.04:LTSexpat2.4.7-1ubuntu0.6UBUNTU-CVE-2024-8176
Ubuntu:24.04:LTSexpat2.6.1-2ubuntu0.3USN-7424-1
Ubuntu:24.04:LTSexpat2.6.1-2ubuntu0.3UBUNTU-CVE-2024-8176
Ubuntu:25.10expat2.7.1-1UBUNTU-CVE-2024-8176
Ubuntu:22.04:LTSinsighttoolkit4no fix listedUBUNTU-CVE-2024-8176
Ubuntu:22.04:LTSmatanzano fix listedUBUNTU-CVE-2024-8176
Ubuntu:24.04:LTSmatanzano fix listedUBUNTU-CVE-2024-8176
Ubuntu:25.10matanzano fix listedUBUNTU-CVE-2024-8176
Ubuntu:26.04:LTSmatanzano fix listedUBUNTU-CVE-2024-8176
Ubuntu:26.10matanzano fix listedUBUNTU-CVE-2024-8176
Ubuntu:25.10swish-eno fix listedUBUNTU-CVE-2024-8176
Ubuntu:26.10swish-eno fix listedUBUNTU-CVE-2024-8176
Ubuntu:22.04:LTStdomno fix listedUBUNTU-CVE-2024-8176
Ubuntu:24.04:LTStdomno fix listedUBUNTU-CVE-2024-8176
Ubuntu:25.10tdomno fix listedUBUNTU-CVE-2024-8176
Ubuntu:26.04:LTStdomno fix listedUBUNTU-CVE-2024-8176
Ubuntu:26.10tdomno fix listedUBUNTU-CVE-2024-8176
Ubuntu:22.04:LTSwbxml2no fix listedUBUNTU-CVE-2024-8176
Ubuntu:24.04:LTSwbxml2no fix listedUBUNTU-CVE-2024-8176
Ubuntu:25.10wbxml2no fix listedUBUNTU-CVE-2024-8176
Ubuntu:26.04:LTSwbxml2no fix listedUBUNTU-CVE-2024-8176
Ubuntu:26.10wbxml2no fix listedUBUNTU-CVE-2024-8176
Ubuntu:25.10xmlrpc-cno fix listedUBUNTU-CVE-2024-8176
Ubuntu:26.04:LTSxmlrpc-cno fix listedUBUNTU-CVE-2024-8176
Ubuntu:26.10xmlrpc-cno fix listedUBUNTU-CVE-2024-8176

Affected products (as reported)

VendorProductVersions
libexpat 0 – before 2.7.0
Red Hat Red Hat Enterprise Linux 10 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support see references
Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support see references
Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support see references
Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support see references
Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On see references
Red Hat Red Hat Enterprise Linux 8.4 Telecommunications Update Service see references
Red Hat Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support see references
Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support see references
Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service see references
Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service see references
Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support see references
Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service see references
Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support see references
Red Hat Red Hat JBoss Core Services 2.4.62.SP1 see references
Red Hat DevWorkspace Operator 0.33 see references
Red Hat Red Hat Discovery 1.14 see references

Weakness: CWE-674 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References