CVE-2024-33664:
python-jose denial of service via compressed JWE content
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.08269%
CWE
Published
4/26/2024
Updated
2/18/2025
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
python-jose | pip | < 3.4.0 | 3.4.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability is a denial of service caused by processing a JWE token with a high compression ratio. The provided pull request (https://github.com/mpdavis/python-jose/pull/345) and its associated commit (483529ee93a3ab510ab579d4d4cc644dba926ade) show a modification to the jose.jwe.decrypt
function. Specifically, a size check was added at the beginning of this function to limit the size of the input JWE string (jwe_str
). This directly indicates that the decrypt
function was the entry point for the vulnerability, as it was responsible for handling the input that could lead to excessive resource consumption. The lack of this size check prior to the patch is what made the function vulnerable.