CVE-2024-31033 Weak cryptography in n/a

Medium 6.8 Published Updated

JJWT library may allow weak keys due to ignored characters, potentially leading to security bypass if users misconfigure key strength.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-31033?

CVE-2024-31033 is a medium-severity vulnerability in n/a, published on 1 Apr 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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

Which versions are affected by CVE-2024-31033?

How do I fix CVE-2024-31033?

No fix has been published for CVE-2024-31033 yet. Limit exposure of the affected software until one is available.

Is CVE-2024-31033 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-31033 exists.

Sources

Is CVE-2024-31033 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free