CVE-2024-33664: python-jose denial of service via compressed JWE content
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.
Published Apr 26, 2024 · Updated Feb 18, 2025
Affected packages
python-jose
- Ecosystem
- PyPI
- Affected
- < 3.4.0
- Fixed in
- 3.4.0
- Check
pip show python-jose
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to garyd203.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-33664
- https://github.com/mpdavis/python-jose/issues/344
- https://github.com/mpdavis/python-jose/pull/345
- https://www.vicarius.io/vsociety/posts/jwt-bomb-in-python-jose-cve-2024-33664
- https://github.com/mpdavis/python-jose/releases/tag/3.4.0
- https://github.com/pypa/advisory-database/tree/main/vulns/python-jose/PYSEC-2024-233.yaml
- https://github.com/advisories/GHSA-cjwg-qfpm-7377
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
