CVEfocus › CVE database › CVE-2024-8176

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

CVSS 7.5 HighEPSS 1.6% (higher than 76% of CVEs)Published 2025-03-14Updated 2026-11-24Assigner: redhat

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.

CWE-674

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

39Fixed
60Fix pending
11Under investigation
22Will not fix
42Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10cadaverFix pendingUBUNTU-CVE-2024-8176
Ubuntu 26.10matanzaFix pendingUBUNTU-CVE-2024-8176
Ubuntu 26.10swish-eFix pendingUBUNTU-CVE-2024-8176
Ubuntu 26.10tdomFix pendingUBUNTU-CVE-2024-8176
Ubuntu 26.10wbxml2Fix pendingUBUNTU-CVE-2024-8176
Ubuntu 26.10xmlrpc-cFix pendingUBUNTU-CVE-2024-8176
Ubuntu 26.04apache2Not affected
vulnerable_code_not_present
Ubuntu 26.04apr-utilNot affected
vulnerable_code_not_present
Ubuntu 26.04cadaverUnder investigationUBUNTU-CVE-2024-8176
Ubuntu 26.04cmakeNot affected
vulnerable_code_not_present
Ubuntu 26.04coin3Not affected
vulnerable_code_not_present
Ubuntu 26.04firefoxNot affected
vulnerable_code_not_present
Ubuntu 26.04gdcmNot affected
vulnerable_code_not_present
Ubuntu 26.04ghostscriptNot affected
vulnerable_code_not_present
Ubuntu 26.04matanzaWill not fix
paraview uses system expat xotcl uses system expat poco uses system expat gdcm uses system expat audacity uses system expat simgear uses system expat coin3…
UBUNTU-CVE-2024-8176
Ubuntu 26.04swish-eFix pendingUBUNTU-CVE-2024-8176
Ubuntu 26.04tdomUnder investigationUBUNTU-CVE-2024-8176
Ubuntu 26.04texlive-binNot affected
vulnerable_code_not_present
Ubuntu 26.04thunderbirdNot affected
vulnerable_code_not_present
Ubuntu 26.04wbxml2Under investigationUBUNTU-CVE-2024-8176
Ubuntu 26.04xmlrpc-cUnder investigationUBUNTU-CVE-2024-8176
Ubuntu 25.10apache2Not affected
vulnerable_code_not_present
Ubuntu 25.10apr-utilNot affected
vulnerable_code_not_present
Ubuntu 25.10cadaverWill not fix
paraview uses system expat xotcl uses system expat poco uses system expat gdcm uses system expat audacity uses system expat simgear uses system expat coin3…
UBUNTU-CVE-2024-8176
Ubuntu 25.10cmakeNot affected
vulnerable_code_not_present
Ubuntu 25.10coin3Not affected
vulnerable_code_not_present
Ubuntu 25.10expatFixed2.7.1-1UBUNTU-CVE-2024-8176
Ubuntu 25.10firefoxNot affected
vulnerable_code_not_present
Ubuntu 25.10gdcmNot affected
vulnerable_code_not_present
Ubuntu 25.10ghostscriptNot affected
vulnerable_code_not_present
Ubuntu 25.10matanzaWill not fix
paraview uses system expat xotcl uses system expat poco uses system expat gdcm uses system expat audacity uses system expat simgear uses system expat coin3…
UBUNTU-CVE-2024-8176
Ubuntu 25.10swish-eWill not fix
paraview uses system expat xotcl uses system expat poco uses system expat gdcm uses system expat audacity uses system expat simgear uses system expat coin3…
UBUNTU-CVE-2024-8176
Ubuntu 25.10tdomWill not fix
paraview uses system expat xotcl uses system expat poco uses system expat gdcm uses system expat audacity uses system expat simgear uses system expat coin3…
UBUNTU-CVE-2024-8176
Ubuntu 25.10texlive-binNot affected
vulnerable_code_not_present
Ubuntu 25.10thunderbirdNot affected
vulnerable_code_not_present
Ubuntu 25.10wbxml2Will not fix
paraview uses system expat xotcl uses system expat poco uses system expat gdcm uses system expat audacity uses system expat simgear uses system expat coin3…
UBUNTU-CVE-2024-8176
Ubuntu 25.10xmlrpc-cWill not fix
paraview uses system expat xotcl uses system expat poco uses system expat gdcm uses system expat audacity uses system expat simgear uses system expat coin3…
UBUNTU-CVE-2024-8176
Ubuntu 24.04apache2Not affected
vulnerable_code_not_present
Ubuntu 24.04apr-utilNot affected
vulnerable_code_not_present
Ubuntu 24.04cadaverUnder investigationUBUNTU-CVE-2024-8176
Ubuntu 24.04cmakeNot affected
vulnerable_code_not_present
Ubuntu 24.04coin3Not affected
vulnerable_code_not_present
Ubuntu 24.04expatFixed2.6.1-2ubuntu0.3UBUNTU-CVE-2024-8176
Ubuntu 24.04firefoxNot affected
vulnerable_code_not_present
Ubuntu 24.04gdcmNot affected
vulnerable_code_not_present
Ubuntu 24.04ghostscriptNot affected
vulnerable_code_not_present
Ubuntu 24.04libxmltokFix pendingUBUNTU-CVE-2024-8176
Ubuntu 24.04matanzaWill not fix
paraview uses system expat xotcl uses system expat poco uses system expat gdcm uses system expat audacity uses system expat simgear uses system expat coin3…
UBUNTU-CVE-2024-8176
Ubuntu 24.04swish-eFix pendingUBUNTU-CVE-2024-8176
Ubuntu 24.04tdomUnder investigationUBUNTU-CVE-2024-8176
Ubuntu 24.04texlive-binNot affected
vulnerable_code_not_present
Ubuntu 24.04thunderbirdNot affected
vulnerable_code_not_present
Ubuntu 24.04wbxml2Under investigationUBUNTU-CVE-2024-8176
Ubuntu 24.04xmlrpc-cFix pendingUBUNTU-CVE-2024-8176
Ubuntu 22.04apache2Not affected
vulnerable_code_not_present
Ubuntu 22.04apr-utilNot affected
vulnerable_code_not_present
Ubuntu 22.04cadaverUnder investigationUBUNTU-CVE-2024-8176
Ubuntu 22.04cmakeNot affected
vulnerable_code_not_present
Ubuntu 22.04coin3Not affected
vulnerable_code_not_present
Ubuntu 22.04expatFixed2.4.7-1ubuntu0.6UBUNTU-CVE-2024-8176
Ubuntu 22.04firefoxNot affected
vulnerable_code_not_present
Ubuntu 22.04gdcmNot affected
vulnerable_code_not_present
Ubuntu 22.04ghostscriptNot affected
vulnerable_code_not_present
Ubuntu 22.04insighttoolkit4Under investigationUBUNTU-CVE-2024-8176
Ubuntu 22.04libxmltokFix pendingUBUNTU-CVE-2024-8176
Ubuntu 22.04matanzaWill not fix
paraview uses system expat xotcl uses system expat poco uses system expat gdcm uses system expat audacity uses system expat simgear uses system expat coin3…
UBUNTU-CVE-2024-8176
Ubuntu 22.04swish-eFix pendingUBUNTU-CVE-2024-8176
Ubuntu 22.04tdomUnder investigationUBUNTU-CVE-2024-8176
Ubuntu 22.04texlive-binNot affected
vulnerable_code_not_present
Ubuntu 22.04thunderbirdNot affected
vulnerable_code_not_present
Ubuntu 22.04wbxml2Under investigationUBUNTU-CVE-2024-8176
Ubuntu 22.04xmlrpc-cFix pendingUBUNTU-CVE-2024-8176
Ubuntu 20.04cadaverWill not fix
paraview uses system expat xotcl uses system expat poco uses system expat gdcm uses system expat audacity uses system expat simgear uses system expat coin3…
UBUNTU-CVE-2024-8176
Ubuntu 20.04cmakeNot affected
vulnerable_code_not_present
Ubuntu 20.04coin3Not affected
vulnerable_code_not_present
Ubuntu 20.04expatFix pendingUBUNTU-CVE-2024-8176
Ubuntu 20.04firefoxNot affected
vulnerable_code_not_present
Ubuntu 20.04gdcmNot affected
vulnerable_code_not_present
Ubuntu 20.04insighttoolkit4Will not fix
paraview uses system expat xotcl uses system expat poco uses system expat gdcm uses system expat audacity uses system expat simgear uses system expat coin3…
UBUNTU-CVE-2024-8176
Ubuntu 20.04libxmltokFix pendingUBUNTU-CVE-2024-8176
Ubuntu 20.04matanzaWill not fix
paraview uses system expat xotcl uses system expat poco uses system expat gdcm uses system expat audacity uses system expat simgear uses system expat coin3…
UBUNTU-CVE-2024-8176
Ubuntu 20.04swish-eFix pendingUBUNTU-CVE-2024-8176
Ubuntu 20.04tdomWill not fix
paraview uses system expat xotcl uses system expat poco uses system expat gdcm uses system expat audacity uses system expat simgear uses system expat coin3…
UBUNTU-CVE-2024-8176
Ubuntu 20.04thunderbirdNot affected
vulnerable_code_not_present
Ubuntu 20.04wbxml2Will not fix
paraview uses system expat xotcl uses system expat poco uses system expat gdcm uses system expat audacity uses system expat simgear uses system expat coin3…
UBUNTU-CVE-2024-8176
Ubuntu 20.04xmlrpc-cFix pendingUBUNTU-CVE-2024-8176
Ubuntu 18.04cadaverFix pendingUBUNTU-CVE-2024-8176
Ubuntu 18.04coin3Fix pendingUBUNTU-CVE-2024-8176
Ubuntu 18.04expatFix pendingUBUNTU-CVE-2024-8176
Ubuntu 18.04gdcmFix pendingUBUNTU-CVE-2024-8176
Ubuntu 18.04insighttoolkit4Fix pendingUBUNTU-CVE-2024-8176
Ubuntu 18.04libxmltokFix pendingUBUNTU-CVE-2024-8176
Ubuntu 18.04matanzaFix pendingUBUNTU-CVE-2024-8176
Ubuntu 18.04smartFix pendingUBUNTU-CVE-2024-8176
Ubuntu 18.04swish-eFix pendingUBUNTU-CVE-2024-8176
Ubuntu 18.04tdomFix pendingUBUNTU-CVE-2024-8176
Ubuntu 18.04vnc4Fix pendingUBUNTU-CVE-2024-8176
Ubuntu 18.04wbxml2Fix pendingUBUNTU-CVE-2024-8176
Ubuntu 18.04xmlrpc-cFix pendingUBUNTU-CVE-2024-8176
Ubuntu 16.04ayttmFix pendingUBUNTU-CVE-2024-8176
Ubuntu 16.04cableswigFix pendingUBUNTU-CVE-2024-8176
Ubuntu 16.04cadaverFix pendingUBUNTU-CVE-2024-8176
Ubuntu 16.04coin3Fix pendingUBUNTU-CVE-2024-8176
Ubuntu 16.04expatFix pendingUBUNTU-CVE-2024-8176
Ubuntu 16.04gdcmFix pendingUBUNTU-CVE-2024-8176
Ubuntu 16.04insighttoolkit4Fix pendingUBUNTU-CVE-2024-8176
Ubuntu 16.04libxmltokFix pendingUBUNTU-CVE-2024-8176
Ubuntu 16.04matanzaFix pendingUBUNTU-CVE-2024-8176
Ubuntu 16.04smartFix pendingUBUNTU-CVE-2024-8176
Ubuntu 16.04swish-eFix pendingUBUNTU-CVE-2024-8176
Ubuntu 16.04tdomFix pendingUBUNTU-CVE-2024-8176
Ubuntu 16.04vnc4Fix pendingUBUNTU-CVE-2024-8176
Ubuntu 16.04vtkFix pendingUBUNTU-CVE-2024-8176
Ubuntu 16.04wbxml2Fix pendingUBUNTU-CVE-2024-8176
Ubuntu 16.04xmlrpc-cFix pendingUBUNTU-CVE-2024-8176
Ubuntu 14.04coin3Fix pendingUBUNTU-CVE-2024-8176
Ubuntu 14.04expatFix pendingUBUNTU-CVE-2024-8176
Ubuntu 14.04vnc4Fix pendingUBUNTU-CVE-2024-8176
Ubuntu 14.04vtkFix pendingUBUNTU-CVE-2024-8176
Ubuntu 14.04xmlrpc-cFix pendingUBUNTU-CVE-2024-8176
Debian 14expatFixed2.7.0-1DEBIAN-CVE-2024-8176
Debian 13expatFixed2.7.0-1DEBIAN-CVE-2024-8176
Debian 12expatFixed2.5.0-1+deb12u2DEBIAN-CVE-2024-8176
Debian 12libxmltokFix pendingDEBIAN-CVE-2024-8176
Red Hat Enterprise Linux 10expatFixed0:2.7.1-1.el10_0RHSA-2025:7512
Red Hat Enterprise Linux 10expat-develFixed0:2.7.1-1.el10_0RHSA-2025:7512
Red Hat Enterprise Linux 9expatFixed0:2.5.0-5.el9_6RHSA-2025:3531
Red Hat Enterprise Linux 9expat-develFixed0:2.5.0-5.el9_6RHSA-2025:3531
Red Hat Enterprise Linux 9firefoxFix pending
Affected
Red Hat Enterprise Linux 9firefox-x11Fix pending
Affected
Red Hat Enterprise Linux 9thunderbirdFix pending
Affected
Red Hat Enterprise Linux 8expatFixed0:2.2.5-17.el8_10RHSA-2025:3913
Red Hat Enterprise Linux 8expat-develFixed0:2.2.5-17.el8_10RHSA-2025:3913
Red Hat Enterprise Linux 8firefoxFix pending
Affected
Red Hat Enterprise Linux 8lua-expatNot affected
Red Hat Enterprise Linux 8mingw-expatFix pending
Affected
Red Hat Enterprise Linux 8mingw32-expatFix pending
Affected
Red Hat Enterprise Linux 8mingw64-expatFix pending
Affected
Red Hat Enterprise Linux 8thunderbirdFix pending
Affected
Red Hat Enterprise Linux 8xmlrpc-cFixed0:1.51.0-11.el8_10RHSA-2025:4048
Red Hat Enterprise Linux 8xmlrpc-c-c++Fixed0:1.51.0-11.el8_10RHSA-2025:4048
Red Hat Enterprise Linux 8xmlrpc-c-clientFixed0:1.51.0-11.el8_10RHSA-2025:4048
Red Hat Enterprise Linux 8xmlrpc-c-client++Fixed0:1.51.0-11.el8_10RHSA-2025:4048
Red Hat Enterprise Linux 8xmlrpc-c-develFixed0:1.51.0-11.el8_10RHSA-2025:4048
Red Hat Enterprise Linux 7expatWill not fix
Out of support scope
Red Hat Enterprise Linux 7expat-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7expat-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 7firefoxWill not fix
Out of support scope
Red Hat Enterprise Linux 7thunderbirdWill not fix
Out of support scope
Red Hat Enterprise Linux 6compat-expat1Will not fix
Out of support scope
Red Hat Enterprise Linux 6expatWill not fix
Out of support scope
Red Hat Enterprise Linux 6expat-develWill not fix
Out of support scope
AlmaLinux 10expatFixed2.7.1-1.el10_0ALSA-2025:7512
AlmaLinux 10expat-develFixed2.7.1-1.el10_0ALSA-2025:7512
AlmaLinux 9expatFixed2.5.0-3.el9_5.3ALSA-2025:7444
AlmaLinux 9expat-develFixed2.5.0-3.el9_5.3ALSA-2025:7444
AlmaLinux 8expatFixed2.2.5-17.el8_10ALSA-2025:3913
AlmaLinux 8expat-develFixed2.2.5-17.el8_10ALSA-2025:3913
AlmaLinux 8xmlrpc-cFixed1.51.0-11.el8_10ALSA-2025:4048
AlmaLinux 8xmlrpc-c-c++Fixed1.51.0-11.el8_10ALSA-2025:4048
AlmaLinux 8xmlrpc-c-clientFixed1.51.0-11.el8_10ALSA-2025:4048
AlmaLinux 8xmlrpc-c-client++Fixed1.51.0-11.el8_10ALSA-2025:4048
AlmaLinux 8xmlrpc-c-develFixed1.51.0-11.el8_10ALSA-2025:4048
Rocky Linux 10expatFixed0:2.7.1-1.el10_0RLSA-2025:7512
Rocky Linux 9expatFixed0:2.5.0-3.el9_5.3RLSA-2025:3531
Rocky Linux 8expatFixed0:2.2.5-17.el8_10RLSA-2025:3913
Rocky Linux 8xmlrpc-cFixed0:1.51.0-11.el8_10RLSA-2025:4048
Alpine Linux 3.24expatFixed2.7.0-r0ALPINE-CVE-2024-8176
Alpine Linux 3.23expatFixed2.7.0-r0ALPINE-CVE-2024-8176
Alpine Linux 3.22expatFixed2.7.0-r0ALPINE-CVE-2024-8176
Alpine Linux 3.21expatFixed2.7.0-r0ALPINE-CVE-2024-8176
Alpine Linux 3.20expatFixed2.7.0-r0ALPINE-CVE-2024-8176
Alpine Linux 3.19expatFixed2.7.0-r0ALPINE-CVE-2024-8176
Alpine Linux 3.18expatFixed2.7.0-r0ALPINE-CVE-2024-8176

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: 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.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.