CVE-2024-29370 Duplicate Advisory: python-jose denial of service via compressed JWE content
An attacker can cause a Denial-of-Service in python-jose by sending a malicious JWE token with high compression, leading to excessive memory usage.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-29370?
CVE-2024-29370 is a medium-severity denial of service vulnerability in n/a, published on 17 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In python-jose 3.3.0 (specifically jwe.decrypt), a vulnerability allows an attacker to cause a Denial-of-Service (DoS) condition by crafting a malicious JSON Web Encryption (JWE) token with an exceptionally high compression ratio. When this token is processed by the server, it results in significant memory allocation and processing time during decompression.
Weakness: CWE-409
Which versions are affected by CVE-2024-29370?
3 open source packages ship an affected version, including python-jose. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
python-jose PyPI | All versions to 3.3.0 | None |
python-jose PyPI | All versions | 3.4.0 |
python-jose PyPI | All versions | 3.4.0 |
Products include Python-Jose Project Python-Jose.
How do I fix CVE-2024-29370?
Upgrade python-jose to 3.4.0 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-29370 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29370 exists.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2024-29370, GHSA-h4pw-wxh7-4vjj, PYSEC-2025-185, UBUNTU-CVE-2024-29370.