CVE-2024-8176
Libexpat: expat: improper restriction of xml entity expansion depth in libexpat
A public proof of concept exists; no exploitation attested.
- Published2025-03-14
- WeaknessCWE-674
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2025-03-1408:19CVE publishedCNA
- 2025-03-1409:15CVE publishedNVD
Versions per branch
Products declared by the CNA44 products
As redhat, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- libexpatother versions: not affected
https://github.com/libexpat/libexpat/
Affected- < 2.7.0fixed in 2.7.0semver
- Red Hat Enterprise Linux 10other versions: affected
package expathttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:2.7.1-1.el10_0
- Red Hat Enterprise Linux 8other versions: affected
package expathttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:2.2.5-17.el8_10
- Red Hat Enterprise Linux 8other versions: affected
package xmlrpc-chttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:1.51.0-11.el8_10
- Red Hat Enterprise Linux 8.2 Advanced Update Supportother versions: affected
package expathttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:2.2.10-1.el8_2
- Red Hat Enterprise Linux 8.2 Advanced Update Supportother versions: affected
package xmlrpc-chttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:1.51.0-5.el8_2.2
38 more products in the CVE record.
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-11-05
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- coin3Ubuntu:Pro:18.04:LTSall versions · no fixed version listedand 4 other packages
- expatWolfiall versions · fixed in 2.7.0-r0
- expatUbuntu:Pro:20.04:LTSall versions · no fixed version listedand 3 other packages
- expatUbuntu:25.10all versions · fixed in 2.7.1-1
- expatUbuntu:24.04:LTSall versions · fixed in 2.6.1-2ubuntu0.3
- expatUbuntu:22.04:LTSall versions · fixed in 2.4.7-1ubuntu0.6
- expatTuxCare:CentOS:8.5all versions · fixed in 2.2.5-13.el8.tuxcare.els3and 2 other packages
- expatTuxCare:CentOS:8.4all versions · fixed in 2.2.5-13.el8.tuxcare.els3and 2 other packages
141 more package ranges on OSV.dev
Vendor advisories
libexpat: expat: Improper Restriction of XML Entity Expansion Depth in libexpat
compat-expat1 as a component of Red Hat Enterprise Linux 6 · compat-expat1.src as a component of Red Hat Enterprise Linux 6 · expat as a component of Red Hat Enterprise Linux 6 · +29 more
Hitachi Energy REB500
REB500 versions 8.3.3.1 and prior
Hitachi Energy ITT600 Explorer
ITT600 Explorer before version 2.1 SP6
Hitachi Energy RTU500 Product (Update A)
RTU500 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 · +2 more
Red Hat Security Advisory: expat security update
Red Hat Security Advisory: expat security update
21 more advisories
Fix
- Vendor fix CISA ICSA-26-279-05 · 1 productUpdate to version 8.3.4.0
- Vendor fix CISA ICSA-26-155-02 · 1 productUpdate to version 2.1 SP6 HF1
- Vendor fix CISA ICSA-26-155-02 · 1 productUpgrade to version 2.2 when available
- Vendor fix CISA ICSA-26-062-03 · 1 productUpdate to CMU Firmware version 12.7.8
- Vendor fix CISA ICSA-26-062-03 · 3 productsUpdate to CMU Firmware version 13.7.8 or latest
- Vendor fix CISA ICSA-26-062-03 · 1 productUpdate to CMU Firmware version 13.8.2
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2025-03-14
- PoC-in-GitHub1 repository, unverifiedknown since 2026-11-01uthrasri/Expat_2.6.2_CVE-2024-8176
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-11-05
- CISA-ADPSSVC decisionpoc2025-03-14
- CNACVSS 3.17.52026-11-05
- CNAweakness (CWE)CWE-6742026-11-05
- FIRST EPSSEPSS score1.4 %2026-11-09
- PoC-in-GitHubproof of concept1known since 2026-11-01
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-58641same flawAzure Linux · MIT
- AZL-58671same flawAzure Linux · MIT
- CGA-45r8-c55g-5gv3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-w842-53hm-6m5rsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2024-54057same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-9hcv-xw76-m4h6same flawGitHub Advisory Database · CC-BY-4.0
- ALSA-2025:3531advisory covering several CVEsAlmaLinux · MIT
- ALSA-2025:3913advisory covering several CVEsAlmaLinux · MIT
- ALSA-2025:4048advisory covering several CVEsAlmaLinux · MIT
- ALSA-2025:7444advisory covering several CVEsAlmaLinux · MIT
- ALSA-2025:7512advisory covering several CVEsAlmaLinux · MIT
- MGASA-2025-0109advisory covering several CVEsMageia · LicenseRef-unstated
- MGASA-2025-0240advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2025-2564advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2565advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2672advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2673advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2674advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2025:14952-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2025:22033advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:22034advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:22035advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:22607advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:22785advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:22842advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:22871advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:3531advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:3913advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:4048advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:4446advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:4447advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:4448advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:4449advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:7444advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:7512advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2025:3531advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2025:3913advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2025:4048advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2025:7512advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2025:03239-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:1186-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:1201-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:1295-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:20207-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:20311-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2026:24323-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2026:4615-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2026:4623-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-7424-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Published
- 2025-03-14
- Last Modified
- 2026-11-05
- NVD status
- Deferred
- GitHub Advisory
- GHSA-9hcv-xw76-m4h6
Frequently asked questions
What is CVE-2024-8176?
Is CVE-2024-8176 actively exploited?
What is the CVSS score for CVE-2024-8176?
Running libexpat? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA ICS advisories (CSAF) · Public domain (US Government work)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-9hcv-xw76-m4h6
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- Siemens ProductCERT (CSAF) · TLP:WHITE (commercial use and redistribution granted)
- CISA Vulnrichment · CC0-1.0