# CVE-2024-33664: python-jose denial of service via compressed JWE content

Source: https://junglewise.ai/threats/cve-2024-33664-python-jose-denial-of-service-via-compressed-jwe-content  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-04-26  
License: CC BY 4.0 with a link back

CVE-2024-33664 · Severity: low · CVSS 3.1 · Published 2024-04-26

python-jose through 3.3.0 allows attackers to cause a denial of service (resource consumption) during a decode via a crafted JSON Web Encryption (JWE) token with a high compression ratio, aka a "JWT bomb." This is similar to CVE-2024-21319.

Technologies: [python-jose (PyPI)](https://junglewise.ai/threats/technologies/pypi-python-jose). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-33664 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-33664 being exploited in the wild.

**How severe is CVE-2024-33664?** Low severity, with a CVSS score of 3.1, published 26 April 2024.

**Which products and versions are affected?** python-jose (PyPI) ECOSYSTEM:introduced=0,fixed=3.4.0.

**Is there a fix for CVE-2024-33664?** Yes. python-jose (PyPI): upgrade to 3.4.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-33664?** Check whether you run python-jose (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- python-jose (PyPI): upgrade to 3.4.0 or later

  ```sh
  pip install "python-jose>=3.4.0"
  ```


## Affected products

- python-jose (PyPI) ECOSYSTEM:introduced=0,fixed=3.4.0

## Identifiers

- CVE-2024-33664
- GHSA-cjwg-qfpm-7377
- PYSEC-2024-233

## Related threats

- [PYSEC-2026-4298 - python-jose algorithm confusion guard bypassed by DER-encoded public keys](https://junglewise.ai/threats/cve-2024-33663-python-jose-algorithm-confusion-with-openssh-ecdsa-keys)
- [python-jose algorithm confusion in HMAC key validation](https://junglewise.ai/threats/cve-2026-85394-python-jose-algorithm-confusion-in-hmac-key-validation)
- [python-jose denial of service via compressed JWE content](https://junglewise.ai/threats/cve-2024-29370-python-jose-denial-of-service-via-compressed-jwe-content)
- [python-jose timing attack in HMAC key comparison](https://junglewise.ai/threats/cve-2016-7036-python-jose-timing-attack-in-hmac-key-comparison)
