# CVE-2024-50602: Denial of service in n/a

> An attacker can cause a crash in the libexpat XML parsing library by triggering a specific parser state, leading to denial of service.

- **Severity:** Medium 5.9 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 27 Oct 2024
- **Updated:** 15 Oct 2026
- **Also known as:** ALPINE-CVE-2024-50602, ALSA-2024:9502, ALSA-2024:9541, AZL-51684, AZL-51735, BELL-CVE-2024-50602, BIT-libpython-2024-50602, BIT-python-2024-50602, BIT-python-min-2024-50602, CLEANSTART-2026-RW14792, CLSA-2024-1732197848, CLSA-2024-1732197865, CLSA-2024-1732197974, CLSA-2024-1732553483, CLSA-2024-1735128527, CLSA-2024-1735128985, CLSA-2026-1778895199, DEBIAN-CVE-2024-50602, DLA-4145-1, ECHO-10c5-b6f3-303a, GHSA-79wf-qgrg-2p6c, JLSEC-2025-65, MGASA-2024-0362, MGASA-2024-0396, MINI-558j-j86f-x26r, MINI-jm3h-mmjg-wxjx, MINI-pvpm-2qx6-hqqp, MINI-qx78-w2w3-r4pv, OESA-2024-2311, RHSA-2024:11200, RHSA-2024:9502, RHSA-2024:9541, RHSA-2025:3350, RLSA-2024:9502, SUSE-SU-2024:3964-1, SUSE-SU-2024:3966-1, SUSE-SU-2024:3968-1, SUSE-SU-2024:3997-1, SUSE-SU-2024:4035-1, SUSE-SU-2024:4412-1, SUSE-SU-2025:20086-1, SUSE-SU-2025:20258-1, UBUNTU-CVE-2024-50602, USN-7145-1, openSUSE-SU-2024:14443-1, openSUSE-SU-2024:14444-1, openSUSE-SU-2024:14457-1, openSUSE-SU-2024:14477-1, openSUSE-SU-2024:14587-1, openSUSE-SU-2024:14588-1, openSUSE-SU-2024:14589-1, openSUSE-SU-2024:14609-1

## What is CVE-2024-50602?

CVE-2024-50602 is a medium-severity denial of service vulnerability in Debian Debian Linux, published on 27 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

An issue was discovered in libexpat before 2.6.4. There is a crash within the XML_ResumeParser function because XML_StopParser can stop/suspend an unstarted parser.

Weakness: CWE-754 (Improper Check for Unusual or Exceptional Conditions)

## Which versions are affected by CVE-2024-50602?

3 open source packages ship an affected version, including libpython, python and python-min. It affects 12 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `libpython` | Bitnami | All versions | 3.9.21, 3.10.16, 3.11.11, 3.12.8, 3.13.1 |
| `python` | Bitnami | All versions | 3.9.21, 3.10.16, 3.11.11, 3.12.8, 3.13.1 |
| `python-min` | Bitnami | All versions | 3.9.21, 3.10.16, 3.11.11, 3.12.8, 3.13.1 |
| `expat` | AlmaLinux:8 | All versions | 2.2.5-16.el8_10 |
| `expat-devel` | AlmaLinux:8 | All versions | 2.2.5-16.el8_10 |
| `expat` | AlmaLinux:9 | All versions | 2.5.0-3.el9_5.1 |
| `expat-devel` | AlmaLinux:9 | All versions | 2.5.0-3.el9_5.1 |
| `expat` | Red Hat:enterprise_linux:8::baseos | All versions | 0:2.2.5-16.el8_10 |
| `expat-debuginfo` | Red Hat:enterprise_linux:8::baseos | All versions | 0:2.2.5-16.el8_10 |
| `expat-debugsource` | Red Hat:enterprise_linux:8::baseos | All versions | 0:2.2.5-16.el8_10 |
| `expat-devel` | Red Hat:enterprise_linux:8::baseos | All versions | 0:2.2.5-16.el8_10 |
| `expat-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:2.5.0-3.el9_5.1 |
| `expat-debugsource` | Red Hat:enterprise_linux:9::appstream | All versions | 0:2.5.0-3.el9_5.1 |
| `expat-devel` | Red Hat:enterprise_linux:9::appstream | All versions | 0:2.5.0-3.el9_5.1 |
| `expat` | Red Hat:enterprise_linux:9::baseos | All versions | 0:2.5.0-3.el9_5.1 |
| `expat-debuginfo` | Red Hat:enterprise_linux:9::baseos | All versions | 0:2.5.0-3.el9_5.1 |
| `expat-debugsource` | Red Hat:enterprise_linux:9::baseos | All versions | 0:2.5.0-3.el9_5.1 |
| `expat-debuginfo` | Red Hat:rhel_eus:9.2::appstream | All versions | 0:2.5.0-1.el9_2.2 |
| `expat-debugsource` | Red Hat:rhel_eus:9.2::appstream | All versions | 0:2.5.0-1.el9_2.2 |
| `expat-devel` | Red Hat:rhel_eus:9.2::appstream | All versions | 0:2.5.0-1.el9_2.2 |
| `expat` | Red Hat:rhel_eus:9.2::baseos | All versions | 0:2.5.0-1.el9_2.2 |
| `expat-debuginfo` | Red Hat:rhel_eus:9.2::baseos | All versions | 0:2.5.0-1.el9_2.2 |
| `expat-debugsource` | Red Hat:rhel_eus:9.2::baseos | All versions | 0:2.5.0-1.el9_2.2 |
| `expat-debuginfo` | Red Hat:rhel_eus:9.4::appstream | All versions | 0:2.5.0-2.el9_4.2 |
| `expat-debugsource` | Red Hat:rhel_eus:9.4::appstream | All versions | 0:2.5.0-2.el9_4.2 |
| `expat-devel` | Red Hat:rhel_eus:9.4::appstream | All versions | 0:2.5.0-2.el9_4.2 |
| `expat` | Red Hat:rhel_eus:9.4::baseos | All versions | 0:2.5.0-2.el9_4.2 |
| `expat-debuginfo` | Red Hat:rhel_eus:9.4::baseos | All versions | 0:2.5.0-2.el9_4.2 |
| `expat-debugsource` | Red Hat:rhel_eus:9.4::baseos | All versions | 0:2.5.0-2.el9_4.2 |
| `expat` | Rocky Linux:8 | All versions | 0:2.2.5-16.el8_10 |
| `expat` | SUSE:Linux Enterprise Micro 5.1 | All versions | 2.2.5-150000.3.33.1 |
| `expat` | SUSE:Linux Enterprise Micro 5.2 | All versions | 2.2.5-150000.3.33.1 |
| `expat` | SUSE:Linux Enterprise Micro 5.3 | All versions | 2.4.4-150400.3.25.1 |
| `expat` | SUSE:Linux Enterprise Micro 5.4 | All versions | 2.4.4-150400.3.25.1 |
| `expat` | SUSE:Linux Enterprise Micro 5.5 | All versions | 2.4.4-150400.3.25.1 |
| `expat` | SUSE:Linux Enterprise Module for Basesystem 15 SP5 | All versions | 2.4.4-150400.3.25.1 |
| `expat` | SUSE:Linux Enterprise Module for Basesystem 15 SP6 | All versions | 2.4.4-150400.3.25.1 |
| `mozjs78` | SUSE:Linux Enterprise Module for Desktop Applications 15 SP5 | All versions | 78.15.0-150400.3.11.1 |
| `mozjs78` | SUSE:Linux Enterprise Module for Package Hub 15 SP5 | All versions | 78.15.0-150400.3.11.1 |
| `python3-wxPython` | SUSE:Linux Enterprise Module for Package Hub 15 SP5 | All versions | 4.1.1-150400.10.1 |

Products: Debian Debian Linux, Libexpat Project Libexpat, Netapp Active Iq Unified Manager, Netapp H300s Firmware, Netapp H410c Firmware, Netapp H410s Firmware, Netapp H500s Firmware, Netapp H700s Firmware, Netapp Hci Compute Node, Netapp Solidfire \& Hci Management Node, Netapp Solidfire \& Hci Storage Node, Netapp Windows Host Utilities.

## How do I fix CVE-2024-50602?

Upgrade libpython to a fixed version for your release line: 3.9.21, 3.10.16, 3.11.11 or 3.12.8.

## Is CVE-2024-50602 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-50602 exists.

Public exploit code:

- https://github.com/MaineK00n/vulncheck_CVE-2024-50602 (github_poc): https://github.com/MaineK00n/vulncheck_CVE-2024-50602

## Other vulnerabilities in Debian Debian Linux

- [CVE-2015-3306](https://insights.sbomify.com/CVE-2015-3306/): ProFTPD Improper Access Control (critical 10.0, exploited in the wild)
- [CVE-2025-49113](https://insights.sbomify.com/CVE-2025-49113/): RoundCube Webmail Deserialization of Untrusted Data (critical 9.9, exploited in the wild)
- [CVE-2026-24061](https://insights.sbomify.com/CVE-2026-24061/): GNU InetUtils Argument Injection (critical 9.8, exploited in the wild)
- [CVE-2025-39682](https://insights.sbomify.com/CVE-2025-39682/): Linux Kernel Improper Check for Unusual or Exceptional Conditions (critical 9.8, exploited in the wild)
- [CVE-2024-9680](https://insights.sbomify.com/CVE-2024-9680/): Mozilla Firefox Use-After-Free (critical 9.8, exploited in the wild)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-50602 and fix it if it is affected.

What it is: CVE-2024-50602 is a medium-severity denial of service vulnerability in Debian Debian Linux, published on 27 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-50602 exists.

Affected packages and fixed versions:
- libpython (Bitnami): affected all versions; fixed in 3.9.21, 3.10.16, 3.11.11, 3.12.8, 3.13.1
- python (Bitnami): affected all versions; fixed in 3.9.21, 3.10.16, 3.11.11, 3.12.8, 3.13.1
- python-min (Bitnami): affected all versions; fixed in 3.9.21, 3.10.16, 3.11.11, 3.12.8, 3.13.1

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-50602/ (Markdown: https://insights.sbomify.com/CVE-2024-50602/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-50602
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-50602
- OSV: https://osv.dev/vulnerability/CVE-2024-50602

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-50602/
Summaries are generated and may contain mistakes; the official description above is the record.
