Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-31033: n/a

0
Medium
VulnerabilityCVE-2024-31033cvecve-2024-31033
Published: Mon Apr 01 2024 (04/01/2024, 00:00:00 UTC)
Source: CVE Database V5

Description

JJWT (aka Java JWT) through 0.12.5 ignores certain characters and thus a user might falsely conclude that they have a strong key. The impacted code is the setSigningKey() method within the DefaultJwtParser class and the signWith() method within the DefaultJwtBuilder class. NOTE: the vendor disputes this because the "ignores" behavior cannot occur (in any version) unless there is a user error in how JJWT is used, and because the version that was actually tested must have been more than six years out of date.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/26/2026, 12:24:00 UTC

Technical Analysis

CVE-2024-31033 identifies a vulnerability in the Java JWT (JJWT) library, specifically versions up to 0.12.5, where the setSigningKey() method in DefaultJwtParser and the signWith() method in DefaultJwtBuilder ignore certain characters in cryptographic keys. This can cause developers to overestimate the strength of their signing keys, potentially weakening the security of JSON Web Tokens (JWTs) generated or validated using JJWT. The root cause is that some characters in the key input are silently ignored during processing, which may reduce the effective entropy and thus the cryptographic strength of the key. However, the vendor disputes the validity of this vulnerability, arguing that the ignoring behavior cannot occur unless there is a user error in how the library is used, and that the tested version was significantly outdated (more than six years old). The vulnerability has a CVSS 3.1 score of 6.8, reflecting a medium severity level, with an attack vector of network, high attack complexity, no privileges required, and requiring user interaction. The impact affects confidentiality and integrity of JWT tokens but does not affect availability. No patches or exploits are currently known, but the issue highlights the importance of correct key handling in JWT implementations.

Potential Impact

If exploited, this vulnerability could allow attackers to compromise the confidentiality and integrity of JWT tokens by exploiting weak or improperly handled signing keys. Attackers might craft tokens that bypass authentication or authorization controls if the signing key is effectively weaker than assumed. This can lead to unauthorized access to protected resources, data leakage, or privilege escalation in applications relying on JJWT for token-based authentication. Since JWTs are widely used for securing APIs and web services, the impact could be significant for organizations that do not properly validate or manage their signing keys. However, the requirement for user interaction and high attack complexity reduces the likelihood of widespread exploitation. The absence of known exploits in the wild further suggests limited immediate risk, but the potential impact on confidentiality and integrity remains notable.

Mitigation Recommendations

Organizations should ensure they are using the latest stable version of the JJWT library, as the vendor indicates that the vulnerability does not exist in current versions. Developers must carefully validate and sanitize cryptographic keys used for JWT signing and verification to avoid user errors that could lead to ignored characters. Implement strict key management policies, including using keys of sufficient length and complexity, and avoid deprecated or outdated library versions. Conduct thorough code reviews and security testing focused on JWT handling and key usage. Additionally, consider implementing defense-in-depth measures such as token expiration, audience validation, and signature verification using multiple factors. Monitoring for unusual authentication patterns and anomalies in token usage can also help detect potential exploitation attempts.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
mitre
Date Reserved
2024-03-27T00:00:00.000Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6dd0b7ef31ef0b58ecea

Added to database: 2/25/2026, 9:46:56 PM

Last enriched: 2/26/2026, 12:24:00 PM

Last updated: 4/12/2026, 3:43:14 PM

Views: 10

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses