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

Medium 5.3 Published Updated

Attackers can cause denial of service via resource consumption using crafted JWE tokens in the python-jose library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-33664?

CVE-2024-33664 is a medium-severity denial of service vulnerability in n/a, published on 25 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-400

Which versions are affected by CVE-2024-33664?

3 open source packages ship an affected version, including python-jose. It affects 1 product.

PackageAffectedFixed in
python-jose PyPIAll versions3.4.0
python-jose PyPIAll versions3.4.0
python-jose PyPIAll versions3.4.0
Linux distribution packages (2)
python-python-jose SUSE:Package Hub 15 SP5All versions3.0.1-bp155.3.6.1
python-python-jose openSUSE:Leap 15.5All versions3.0.1-bp155.3.6.1

Products include Python-Jose Project Python-Jose.

How do I fix CVE-2024-33664?

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-33664 being exploited?

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

Sources

Also known as CLSA-2025-1758845544, DEBIAN-CVE-2024-33664, GHSA-cjwg-qfpm-7377, PYSEC-2024-233, UBUNTU-CVE-2024-33664, openSUSE-SU-2024:0149-1.

Is CVE-2024-33664 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free