CVE-2024-8176
Libexpat: expat: improper restriction of xml entity expansion depth in libexpat
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.
Fixes and workarounds
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.
Source: CNA: redhatAffected products and versions
| Product | Versions | Authority |
|---|---|---|
libexpat
https://github.com/libexpat/libexpat/ |
≥ 0; < 2.7.0 (affected, semver)
Other versions: unaffected |
CNA: redhat |
| Red Hat Enterprise Linux 10 Red Hat expat
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:2.7.1-1.el10_0; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8 Red Hat expat
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:2.2.5-17.el8_10; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8 Red Hat xmlrpc-c
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:1.51.0-11.el8_10; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.2 Advanced Update Support Red Hat expat
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:2.2.10-1.el8_2; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.2 Advanced Update Support Red Hat xmlrpc-c
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:1.51.0-5.el8_2.2; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support Red Hat expat
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:2.2.10-1.el8_4; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support Red Hat xmlrpc-c
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:1.51.0-5.el8_4.2; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On Red Hat expat
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:2.2.10-1.el8_4; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.4 Telecommunications Update Service Red Hat xmlrpc-c
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:1.51.0-5.el8_4.2; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions Red Hat xmlrpc-c
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:1.51.0-5.el8_4.2; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support Red Hat expat
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:2.2.10-1.el8_6; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support Red Hat xmlrpc-c
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:1.51.0-6.el8_6.1; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.6 Telecommunications Update Service Red Hat expat
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:2.2.10-1.el8_6; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.6 Telecommunications Update Service Red Hat xmlrpc-c
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:1.51.0-6.el8_6.1; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions Red Hat expat
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:2.2.10-1.el8_6; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions Red Hat xmlrpc-c
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:1.51.0-6.el8_6.1; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.8 Extended Update Support Red Hat xmlrpc-c
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:1.51.0-8.el8_8.1; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service Red Hat expat
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:2.2.10-1.el8_8; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions Red Hat expat
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:2.2.10-1.el8_8; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 9 Red Hat expat
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:2.5.0-3.el9_5.3; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 9 Red Hat expat
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:2.5.0-5.el9_6; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions Red Hat expat
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:2.2.10-12.el9_0.4; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions Red Hat expat
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:2.5.0-1.el9_2.3; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 9.4 Extended Update Support Red Hat expat
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:2.5.0-2.el9_4.3; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat JBoss Core Services 2.4.62.SP1 Red Hat expat
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| DevWorkspace Operator 0.33 Red Hat devworkspace/devworkspace-project-clone-rhel9
https://catalog.redhat.com/software/containers/ |
≥ 0.33-1744075017; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Discovery 1.14 Red Hat discovery/discovery-server-rhel9
https://catalog.redhat.com/software/containers/ |
≥ 1.14.3-1748529279; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Discovery 1.14 Red Hat discovery/discovery-ui-rhel9
https://catalog.redhat.com/software/containers/ |
≥ 1.14.2-1748467619; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 6 Red Hat compat-expat1
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unknown |
CNA: redhat |
| Red Hat Enterprise Linux 6 Red Hat expat
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unknown |
CNA: redhat |
| Red Hat Enterprise Linux 7 Red Hat expat
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unknown |
CNA: redhat |
| Red Hat Enterprise Linux 7 Red Hat firefox
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unknown |
CNA: redhat |
| Red Hat Enterprise Linux 7 Red Hat thunderbird
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unknown |
CNA: redhat |
| Red Hat Enterprise Linux 8 Red Hat firefox
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8 Red Hat lua-expat
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| Red Hat Enterprise Linux 8 Red Hat mingw-expat
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8 Red Hat thunderbird
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 9 Red Hat firefox
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 9 Red Hat firefox:flatpak/firefox
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 9 Red Hat thunderbird
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 9 Red Hat thunderbird:flatpak/thunderbird
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: affected |
CNA: redhat |
| Red Hat OpenShift Container Platform 4 Red Hat openshift/ose-rhel-coreos-8
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: affected |
CNA: redhat |
| Red Hat OpenShift Container Platform 4 Red Hat openshift/ose-rhel-coreos-9
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: affected |
CNA: redhat |
| SIMATIC S7-1500 CPU 1518-4 PN/DP MFP Siemens |
≥ V3.1.0; < V3.1.5 (affected, custom)
Other versions: unknown |
ADP: siemens-SADP |
| SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP Siemens |
≥ V3.1.0; < V3.1.5 (affected, custom)
Other versions: unknown |
ADP: siemens-SADP |
| SIPLUS S7-1500 CPU 1518-4 PN/DP MFP Siemens |
≥ V3.1.0; < V3.1.5 (affected, custom)
Other versions: unknown |
ADP: siemens-SADP |
| RUGGEDCOM RST2428P Siemens |
≥ 0; < V3.2 (affected, custom)
Other versions: unknown |
ADP: siemens-SADP |
| SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family Siemens |
≥ 0; < V3.2 (affected, custom)
Other versions: unknown |
ADP: siemens-SADP |
| SCALANCE XCM-/XRM-/XCH-/XRH-300 family Siemens |
≥ 0; < V3.2 (affected, custom)
Other versions: unknown |
ADP: siemens-SADP |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 7.5 high |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | CNA: redhat |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://access.redhat.com/errata/RHSA-2025:13681CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:22033CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:22034CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:22035CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:22607CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:22785CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:22842CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:22871CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:3531CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:3734CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:3913CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:4048CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:4446CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:4447CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:4448CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:4449CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:7444CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:7512CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:8385CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2024-8176CNA: redhat · vdb-entry, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2310137CNA: redhat · issue-tracking, x_refsource_REDHAT
- https://github.com/libexpat/libexpat/issues/893CNA: redhat
- https://github.com/libexpat/libexpat/pull/973CNA: redhat
- http://www.openwall.com/lists/oss-security/2025/03/15/1ADP: CVE
- https://blog.hartwork.org/posts/expat-2-7-0-released/ADP: CVE
- https://github.com/libexpat/libexpat/blob/R_2_7_0/expat/Changes#L40-L52ADP: CVE
- https://bugzilla.suse.com/show_bug.cgi?id=1239618ADP: CVE
- https://ubuntu.com/security/CVE-2024-8176ADP: CVE
- https://security-tracker.debian.org/tracker/CVE-2024-8176ADP: CVE
- https://gitlab.alpinelinux.org/alpine/aports/-/commit/d068c3ff36fc6f4789988a09c69b434db757db53ADP: CVE
- https://security.netapp.com/advisory/ntap-20250328-0009/ADP: CVE
- https://www.kb.cert.org/vuls/id/760160ADP: CVE
- http://seclists.org/fulldisclosure/2025/May/12ADP: CVE
- http://seclists.org/fulldisclosure/2025/May/11ADP: CVE
- http://seclists.org/fulldisclosure/2025/May/10ADP: CVE
- http://seclists.org/fulldisclosure/2025/May/8ADP: CVE
- http://seclists.org/fulldisclosure/2025/May/7ADP: CVE
- http://seclists.org/fulldisclosure/2025/May/6ADP: CVE
- http://www.openwall.com/lists/oss-security/2025/09/24/11ADP: CVE
- https://cert-portal.siemens.com/productcert/html/ssa-398330.htmlADP: siemens-SADP
- https://cert-portal.siemens.com/productcert/html/ssa-355557.htmlADP: siemens-SADP
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.