CVE-2024-31033

6.8 MEDIUM
Published: April 01, 2024 Modified: April 15, 2026
View on NVD

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 Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://github.com/jwtk/jjwt
Source: cve@mitre.org
https://github.com/2308652512/JJWT_BUG
Source: af854a3a-2127-422b-91ae-364da2661108
https://github.com/jwtk/jjwt
Source: af854a3a-2127-422b-91ae-364da2661108
https://github.com/jwtk/jjwt/issues/930#issuecomment-2032699358
Source: af854a3a-2127-422b-91ae-364da2661108
https://www.viralpatel.net/java-create-validate-jwt-token/
Source: af854a3a-2127-422b-91ae-364da2661108

8 reference(s) from NVD

Quick Stats

CVSS v3 Score
6.8 / 10.0
EPSS (Exploit Probability)
0.1%
35th percentile
Exploitation Status
Not in CISA KEV