CVE-2024-29371: jose4j · Improper Restriction of Security Token Assignment
Affects jose4jSource CVE Database V5
Not known to be exploited · CVSS 7.5 High : upgrade to 0.9.6 soon.
Data as of 26 Oct 2026, 11:07 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 17% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.9.6
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 17 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade org.bitbucket.b_c/jose4j to 0.9.6.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Mavenorg.bitbucket.b_c/jose4jpkg:maven/org.bitbucket.b_c/jose4jOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2024-29371, organizations should immediately upgrade the jose4j library to version 0.9.6 or later, where the vulnerability is fixed. If upgrading is not immediately feasible, implement strict input validation to detect and reject JWE tokens with suspiciously high compression ratios or abnormal sizes before decompression. Employ resource usage limits such as memory and CPU time quotas on processes handling JWE tokens to prevent resource exhaustion. Deploy Web Application Firewalls (WAFs) or API gateways with anomaly detection capabilities to identify and block malformed or malicious tokens. Monitor application logs and system metrics for unusual spikes in resource consumption that could indicate exploitation attempts. Additionally, consider rate limiting requests to endpoints that process JWE tokens to reduce the risk of DoS attacks. Conduct regular security assessments and penetration testing focusing on token processing components. Finally, maintain an incident response plan to quickly address potential DoS incidents related to this vulnerability.
Description
In jose4j before 0.9.6, an attacker can 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.