CVE-2024-31033
JSON

6.8medium

JJWT (aka Java JWT) through 0.12.5 ignores certain characters and thus a user might falsely conclude that they have a strong key.

Severity
6.8medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.78% (higher than 57% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-r65j-6h5f-4f92

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
jwtk jjwtup to 0.12.5CVE List
io.jsonwebtoken:jjwt-impl (Maven)up to 0.12.5GitHub Advisory Database

All scores

CISA-ADP6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
GitHub6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

Classification

CWE-327

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

Withdrawn Advisory

This advisory has been withdrawn because it has been found to be disputed. Please see the issue here for more information.

Original 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.

NVD (es)

JJWT (también conocido como Java JWT) hasta 0.12.5 ignora ciertos caracteres y, por lo tanto, un usuario podría concluir erróneamente que tiene una clave segura. El código afectado es el método setSigningKey() dentro de la clase DefaultJwtParser y el método signWith() dentro de la clase DefaultJwtBuilder.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-31033 changed 2024-08-27CVE Terms of Use
GitHub Advisory DatabaseGHSA-r65j-6h5f-4f92 changed 2026-09-10CC-BY-4.0
NVDCVE-2024-31033 changed 2026-06-17Public domain