Bug 2263418 (CVE-2024-25189) - CVE-2024-25189 libjwt: auth bypass via timing side channel
Summary: CVE-2024-25189 libjwt: auth bypass via timing side channel
Keywords:
Status: NEW
Alias: CVE-2024-25189
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2263419 2263420
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-02-08 19:21 UTC by Robb Gatica
Modified: 2024-02-08 19:23 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Robb Gatica 2024-02-08 19:21:39 UTC
The jwt_verify_sha_hmac function of jwt-wincrypt.c implements the function of comparing the HS256 algorithm signature. However, the function uses strcmp to compare the calculated signature with the JWT signature we provided, and strcmp is not a time-safe comparison function. Affected version: 1.15.3

References: 
https://github.com/P3ngu1nW/CVE_Request/blob/main/benmcollins%3Alibjwt.md
https://github.com/benmcollins/libjwt/blob/323fb1c76f435b2d0d57f992ffa2a6cdc0d9f397/libjwt/jwt-wincrypt.c#L627
https://nvd.nist.gov/vuln/detail/CVE-2024-25189

Comment 1 Robb Gatica 2024-02-08 19:21:55 UTC
Created libjwt tracking bugs for this issue:

Affects: epel-all [bug 2263420]
Affects: fedora-all [bug 2263419]


Note You need to log in before you can comment on or make changes to this bug.