High [CVE-2024-8176] Libexpat: expat: improper restriction of xml entity expansion depth in libexpat
This high-severity Red Hat Linux advisory covers CVE-2024-8176 affecting Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8.2 Advanced Update Support, Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support.
Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.
VulniPulse record published
Android app · Google Play
Monitor future Red Hat Linux CVEs from your phone.
Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 32 official vendor sources and 160+ reviewed platform categories.
Summary
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. All supported Red Hat offerings are built with the compilation flag (-fstack-clash-protection) which reduces the impact to Moderate.
This build configuration blocks the possibility of an attacker gaining arbitrary code execution even if a stack-clash vulnerability, like this one, could be exploited. This vulnerability is rated Moderate because Red Hat builds use the `-fstack-clash-protection` compiler flag, which mitigates the risk of arbitrary code execution from stack overflows.
While the flaw allows a crash via uncontrolled recursion in XML parsing, the hardened stack layout prevents reliable memory corruption, limiting the impact to a Denial of Service (DoS) scenario. Red Hat severity: Moderate — CVSS 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
Weakness: CWE-674.
Affected versions
No affected-version range was extracted from the source record. The vendor advisory is authoritative — check it before change work.
Official advisory · high-confidence parse· fetched 9 days ago·verify at source
- expat-0:2.7.1-1.el10_0
- expat-0:2.2.5-17.el8_10
- xmlrpc-c-0:1.51.0-11.el8_10
- expat-0:2.2.10-1.el8_2
- xmlrpc-c-0:1.51.0-5.el8_2.2
- expat-0:2.2.10-1.el8_4
- xmlrpc-c-0:1.51.0-5.el8_4.2
- expat-0:2.2.10-1.el8_6
- xmlrpc-c-0:1.51.0-6.el8_6.1
- xmlrpc-c-0:1.51.0-8.el8_8.1
- expat-0:2.2.10-1.el8_8
- expat-0:2.5.0-3.el9_5.3
- expat-0:2.5.0-5.el9_6
- expat-0:2.2.10-12.el9_0.4
- expat-0:2.5.0-1.el9_2.3
- expat-0:2.5.0-2.el9_4.3
- devworkspace/devworkspace-project-clone-rhel9:0.33-1744075017
- discovery/discovery-server-rhel9:1.14.3-1748529279
- discovery/discovery-ui-rhel9:1.14.2-1748467619
- RHSA-2025:7512
- RHSA-2025:3913
- RHSA-2025:4048
- RHSA-2025:22871
- RHSA-2025:4447
- RHSA-2025:22785
- RHSA-2025:4448
- RHSA-2025:22842
- RHSA-2025:4449
- RHSA-2025:4446
- RHSA-2025:22607
- RHSA-2025:3531
- RHSA-2025:7444
- RHSA-2025:22035
- RHSA-2025:22034
- RHSA-2025:22033
- RHSA-2025:3734
- RHSA-2025:8385
Official advisory · high-confidence parse· fetched 9 days ago·verify at source
Mitigation checklist
- 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.
Official advisory · high-confidence parse· fetched 9 days ago·verify at source
Discussion(0)
No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.
Sign in to join the discussion.