Bug 2263418 (CVE-2024-25189)

Summary: CVE-2024-25189 libjwt: auth bypass via timing side channel
Product: [Other] Security Response Reporter: Robb Gatica <rgatica>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2263419, 2263420    
Bug Blocks:    

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]