CVE-2024-25189

libjwt 1.15.3 uses strcmp (which is not constant time) to verify authentication, which makes it easier to bypass authentication via a timing side channel

Critical · published February 8, 2024

CVSS v3.1
9.8
EPSS
1%
Percentile
61.0
In the wild
Unconfirmed
What it is

🚨 A subtle timing attack can give the green light to authentication bypass in libjwt 1.15.3 — think of it as a convinced doorman letting in guests without checking their IDs! 🔥 It's like a restaurant with a really slow cashier who doesn't notice when someone sneaks through while the line is held up — if the cashier is distracted, anyone could just waltz in without paying! An attacker could potentially exploit this vulnerability to bypass authentication checks altogether, allowing unauthorized access to sensitive information or functionality. The consequences could be absolutely devastating, exposing your entire system to all sorts of threats!

Put simply

It's like a restaurant with a really slow cashier who doesn't notice when someone sneaks through while the line is held up — if the cashier is distracted, anyone could just waltz in without paying! This vulnerability arises because the libjwt library uses the non-constant time `strcmp` function for authentication verification, making it susceptible to timing side-channel attacks that can be exploited to bypass authentication mechanisms.

What to do

An attacker could potentially exploit this vulnerability to bypass authentication checks altogether, allowing unauthorized access to sensitive information or functionality. The consequences could be absolutely devastating, exposing your entire system to all sorts of threats! Upgrade libjwt to version 1.15.4 or later immediately to mitigate this vulnerability. Additionally, review your authentication mechanisms and implement constant-time comparison functions to enhance security. Don't delay; this is critical! You’ve got this! Follow these steps and you'll keep your system safe and sound! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00954 · 61.0th percentile
Published
2024-02-08T00:00Z
EPSS history
Timeline
  • 08 FEB 00:00Z
    libjwt 1.15.3 uses strcmp (which is not constant time) to verify authentication, which makes it easier to bypass authentication via a timing side channel
    cvelistv5