Skip to content
OpenAdvisories
High · 7.5 Public exploit CVE-2024-8176 EUVD-2024-54057GHSA-9hcv-xw76-m4h6

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

Published Mar 14, 2025 · Updated Nov 5, 2026 · Assigned by redhat

Vendor: Red Hat Product: DevWorkspace Operator 0.33 Product: Red Hat Discovery 1.14 Product: Red Hat Enterprise Linux 10 Product: Red Hat Enterprise Linux 6 Product: Red Hat Enterprise Linux 7 Product: Red Hat Enterprise Linux 8 Product: Red Hat Enterprise Linux 8.2 Advanced Update Support Product: Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support Product: Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On Product: Red Hat Enterprise Linux 8.4 Telecommunications Update Service Product: Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions Product: Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support Product: Red Hat Enterprise Linux 8.6 Telecommunications Update Service Product: Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions Product: Red Hat Enterprise Linux 8.8 Extended Update Support Product: Red Hat Enterprise Linux 8.8 Telecommunications Update Service Product: Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions Product: Red Hat Enterprise Linux 9 Product: Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions Product: Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions Product: Red Hat Enterprise Linux 9.4 Extended Update Support Product: Red Hat JBoss Core Services 2.4.62.SP1 Product: Red Hat OpenShift Container Platform 4 Package: ayttm Package: cableswig Package: cadaver Package: coin3 Package: expat Package: expat Package: expat Package: expat Package: expat Package: gdcm Package: insighttoolkit4 Package: libxmltok Package: libxmltok Package: matanza Package: smart Package: swish-e Package: tdom Package: vnc4 Package: vtk Package: wbxml2 Package: xmlrpc-c Platform: Linux Ecosystem: Alpine Ecosystem: Azure Linux Ecosystem: Debian Ecosystem: Ubuntu Ecosystem: Wolfi

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 products

VendorProductAffectedFixed
— libexpat < 2.7.0 2.7.0
Red Hat Red Hat Enterprise Linux 10 — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support — —
Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support — —
Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On — —
Red Hat Red Hat Enterprise Linux 8.4 Telecommunications Update Service — —
Red Hat Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support — —
Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service — —
Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support — —
Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service — —
Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support — —
Red Hat Red Hat JBoss Core Services 2.4.62.SP1 — —
Red Hat DevWorkspace Operator 0.33 — —
Red Hat Red Hat Discovery 1.14 — —
Red Hat Red Hat Enterprise Linux 6 — —
Red Hat Red Hat Enterprise Linux 7 — —
Red Hat Red Hat OpenShift Container Platform 4 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 expat 2.7.0-1 —
Debian 13 expat 2.7.0-1 —
Debian 12 expat 2.5.0-1+deb12u2 —
Debian 12 libxmltok No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 tdom +5 No fix yet —
Ubuntu 26.04 LTS tdom +4 No fix yet —
Ubuntu 25.10 expat 2.7.1-1 —
Ubuntu 25.10 tdom +5 No fix yet —
Ubuntu 24.04 LTS expat 2.6.1-2ubuntu0.3 USN-7424-1
Ubuntu 24.04 LTS tdom +3 No fix yet —
Ubuntu 22.04 LTS expat 2.4.7-1ubuntu0.6 USN-7424-1
Ubuntu 22.04 LTS tdom +4 No fix yet —
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS tdom +4 No fix yet —
Ubuntu 18.04 LTS gdcm +7 No fix yet —
Ubuntu 16.04 LTS gdcm +6 No fix yet —
Ubuntu Pro 26.04 LTS swish-e No fix yet —
Ubuntu Pro 24.04 LTS swish-e +2 No fix yet —
Ubuntu Pro 22.04 LTS swish-e +2 No fix yet —
Ubuntu Pro 20.04 LTS expat +3 No fix yet —
Ubuntu Pro 18.04 LTS coin3 +4 No fix yet —
Ubuntu Pro 16.04 LTS vtk +8 No fix yet —
Ubuntu Pro 14.04 LTS vtk +4 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 expat +1 2.7.1-1.el10_0 RHSA-2025:7512
RHEL 9 expat +1 2.5.0-3.el9_5.3 RHSA-2025:7444, RHSA-2025:3531
RHEL 8 expat +1 2.2.5-17.el8_10 RHSA-2025:3913
RHEL 8 xmlrpc-c +4 1.51.0-11.el8_10 RHSA-2025:4048
Show 14 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.4 EUS expat 2.5.0-2.el9_4.3 RHSA-2025:22033
RHEL 9.2 E4S expat 2.5.0-1.el9_2.3 RHSA-2025:22034
RHEL 9.0 E4S expat 2.2.10-12.el9_0.4 RHSA-2025:22035
RHEL 8.8 TUS expat 2.2.10-1.el8_8 RHSA-2025:22607
RHEL 8.8 EUS xmlrpc-c +4 1.51.0-8.el8_8.1 RHSA-2025:4446
RHEL 8.8 E4S expat 2.2.10-1.el8_8 RHSA-2025:22607
RHEL 8.6 TUS expat 2.2.10-1.el8_6 RHSA-2025:22842
RHEL 8.6 TUS xmlrpc-c +1 1.51.0-6.el8_6.1 RHSA-2025:4449
RHEL 8.6 E4S expat 2.2.10-1.el8_6 RHSA-2025:22842
RHEL 8.6 E4S xmlrpc-c +1 1.51.0-6.el8_6.1 RHSA-2025:4449
RHEL 8.6 AUS expat 2.2.10-1.el8_6 RHSA-2025:22842
RHEL 8.6 AUS xmlrpc-c +1 1.51.0-6.el8_6.1 RHSA-2025:4449
RHEL 8.4 TUS xmlrpc-c +1 1.51.0-5.el8_4.2 RHSA-2025:4448
RHEL 8.4 EUS Long Life expat 2.2.10-1.el8_4 RHSA-2025:22785
RHEL 8.4 E4S xmlrpc-c +1 1.51.0-5.el8_4.2 RHSA-2025:4448
RHEL 8.4 AUS expat 2.2.10-1.el8_4 RHSA-2025:22785
RHEL 8.4 AUS xmlrpc-c +1 1.51.0-5.el8_4.2 RHSA-2025:4448
RHEL 8.2 AUS expat 2.2.10-1.el8_2 RHSA-2025:22871
RHEL 8.2 AUS xmlrpc-c +1 1.51.0-5.el8_2.2 RHSA-2025:4447

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 expat +1 2.7.1-1.el10_0 ALSA-2025:7512
AlmaLinux 9 expat +1 2.5.0-3.el9_5.3 ALSA-2025:7444, ALSA-2025:3531
AlmaLinux 8 expat +1 2.2.5-17.el8_10 ALSA-2025:3913
AlmaLinux 8 xmlrpc-c +4 1.51.0-11.el8_10 ALSA-2025:4048

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 expat 2.7.1-1.el10_0 RLSA-2025:7512
Rocky Linux 9 expat 2.5.0-3.el9_5.3 RLSA-2025:3531
Rocky Linux 8 expat 2.2.5-17.el8_10 RLSA-2025:3913
Rocky Linux 8 xmlrpc-c 1.51.0-11.el8_10 RLSA-2025:4048
ReleasePackageFixed inAdvisory
SLES 15 SP7 expat 2.7.1-150700.3.3.1 SUSE-SU-2025:03239-1
SLES 15 SP6 expat 2.7.1-150400.3.28.1 SUSE-SU-2026:4623-1, SUSE-SU-2025:1201-1
SLES 15 SP5 expat 2.7.1-150400.3.28.1 SUSE-SU-2026:4623-1, SUSE-SU-2025:1201-1
SLES 15 SP4 expat 2.7.1-150400.3.28.1 SUSE-SU-2026:4623-1, SUSE-SU-2025:1201-1
SLES 15 SP3 expat 2.7.1-150000.3.36.1 SUSE-SU-2025:1186-1
Show 18 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP5 expat 2.7.1-21.43.1 SUSE-SU-2026:4615-1, SUSE-SU-2025:1295-1
SLES for SAP 15 SP6 expat 2.8.5-150400.3.40.1 SUSE-SU-2026:4623-1
SLES for SAP 15 SP5 expat 2.7.1-150400.3.28.1 SUSE-SU-2026:4623-1, SUSE-SU-2025:1201-1
SLES for SAP 15 SP4 expat 2.7.1-150400.3.28.1 SUSE-SU-2026:4623-1, SUSE-SU-2025:1201-1
SLES for SAP 15 SP3 expat 2.7.1-150000.3.36.1 SUSE-SU-2025:1186-1
SLE Micro 6.1 expat 2.7.1-slfo.1.1_1.1 SUSE-SU-2025:20311-1
SLE Micro 6.0 expat 2.7.1-1.1 SUSE-SU-2026:24323-1, SUSE-SU-2025:20207-1
SLE Micro 5.5 expat 2.7.1-150400.3.28.1 SUSE-SU-2026:4623-1, SUSE-SU-2025:1201-1
SLE Micro 5.4 expat 2.7.1-150400.3.28.1 SUSE-SU-2026:4623-1, SUSE-SU-2025:1201-1
SLE Micro 5.3 expat 2.7.1-150400.3.28.1 SUSE-SU-2026:4623-1, SUSE-SU-2025:1201-1
SLE Micro 5.2 expat 2.7.1-150000.3.36.1 SUSE-SU-2025:1186-1
SLE Micro 5.1 expat 2.7.1-150000.3.36.1 SUSE-SU-2025:1186-1
SLE HPC 15 SP5 expat 2.7.1-150400.3.28.1 SUSE-SU-2026:4623-1, SUSE-SU-2025:1201-1
SLE HPC 15 SP4 expat 2.7.1-150400.3.28.1 SUSE-SU-2026:4623-1, SUSE-SU-2025:1201-1
SLE HPC 15 SP3 expat 2.7.1-150000.3.36.1 SUSE-SU-2025:1186-1
SUSE Manager Server 4.3 expat 2.7.1-150400.3.28.1 SUSE-SU-2025:1201-1
SUSE Manager Proxy 4.3 expat 2.7.1-150400.3.28.1 SUSE-SU-2025:1201-1
SUSE Enterprise Storage 7.1 expat 2.7.1-150000.3.36.1 SUSE-SU-2025:1186-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed expat 2.7.1-1.1 openSUSE-SU-2025:14952-1
openSUSE Leap 15.6 expat 2.7.1-150400.3.28.1 SUSE-SU-2025:1201-1
ReleasePackageFixed inAdvisory
Alpine v3.24 expat 2.7.0-r0 —
Alpine v3.23 expat 2.7.0-r0 —
Alpine v3.22 expat 2.7.0-r0 —
Alpine v3.21 expat 2.7.0-r0 —
Alpine v3.20 expat 2.7.0-r0 —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 expat 2.7.0-r0 —
Alpine v3.18 expat 2.7.0-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 xmlrpc-c +5 1.51.08-2.amzn2023.0.2 ALAS2023-2025-1229

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 expat 2.6.4-1 —
Azure Linux 2 (CBL-Mariner) expat 2.6.4-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 expat +1 2.7.1-1.el10_0 ELSA-2025-7512
Oracle Linux 9 expat +1 2.5.0-3.el9_5.3 ELSA-2025-7444, ELSA-2025-3531
Oracle Linux 8 expat +1 2.2.5-17.0.1.el8_10 ELSA-2025-3913
Oracle Linux 8 xmlrpc-c +4 1.51.0-11.el8_10 ELSA-2025-4048

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling expat 2.7.0-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 50

References