CVE-2024-8176
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.
How to fix
- libexpat2.7.0 or later
- access.redhat.com/errata/RHSA-2025:13681
- access.redhat.com/errata/RHSA-2025:22033
- access.redhat.com/errata/RHSA-2025:22034
- access.redhat.com/errata/RHSA-2025:22035
- access.redhat.com/errata/RHSA-2025:22607
- access.redhat.com/errata/RHSA-2025:22785
- access.redhat.com/errata/RHSA-2025:22842
- access.redhat.com/errata/RHSA-2025:22871
- access.redhat.com/errata/RHSA-2025:3531
- access.redhat.com/errata/RHSA-2025:3734
- access.redhat.com/errata/RHSA-2025:3913
- access.redhat.com/errata/RHSA-2025:4048
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| libexpat | v < 2.7.0 | 2.7.0 |
| Red Hat Red Hat Enterprise Linux 10 | No range specified | — |
| enterprise_linux 8 | No range specified | — |
| rhel_aus 8.2 | No range specified | — |
| rhel_aus 8.4 | No range specified | — |
| rhel_aus 8.6 | No range specified | — |
| rhel_eus 8.8 | No range specified | — |
| rhel_e4s 8.8 | No range specified | — |
| enterprise_linux 9 | No range specified | — |
| rhel_e4s 9.0 | No range specified | — |
| rhel_e4s 9.2 | No range specified | — |
| rhel_eus 9.4 | No range specified | — |
| devworkspace 0.33 | No range specified | — |
| discovery 1.14 | No range specified | — |
| Red Hat Red Hat Enterprise Linux 8 | No range specified | — |
| Red Hat Red Hat Enterprise Linux 9 | No range specified | — |
| Red Hat Red Hat OpenShift Container Platform 4 | No range specified | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.