CVE-2024-37568: lepture Authlib · Improper Access Control
Source CVE Database V5
Mentioned vulnerabilities
Not known to be exploited · CVSS 7.5 High · fixed in 1.3.1 : patch affected systems soon.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 32% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 3 Nov 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
- Upgrade lepture Authlib to version 1.3.1 or later immediately, as this version contains the fix for the algorithm confusion vulnerability.
- Review all jwt.decode calls in application code to ensure that the 'algorithms' parameter is explicitly specified, restricting accepted algorithms to those intended (e.g., ['RS256'] for RSA signatures). Avoid relying on default algorithm selection.
- Implement strict input validation and token verification policies to detect and reject tokens with unexpected or unsupported algorithms.
- Conduct code audits and penetration testing focused on JWT handling to identify any other potential misconfigurations or vulnerabilities.
- Monitor authentication logs for anomalies such as unexpected token issuances or verification failures that could indicate exploitation attempts.
- Educate developers on secure JWT usage patterns and the risks of algorithm confusion attacks.
- If upgrading immediately is not feasible, consider implementing compensating controls such as web application firewalls (WAFs) with rules to detect suspicious JWT tokens or unusual authentication patterns.
- Maintain an inventory of applications and services using Authlib to ensure comprehensive coverage of the mitigation efforts.
Description
lepture Authlib before 1.3.1 has algorithm confusion with asymmetric public keys. Unless an algorithm is specified in a jwt.decode call, HMAC verification is allowed with any asymmetric public key. (This is similar to CVE-2022-29217 and CVE-2024-33663.)
References
- github.com/lepture/authlib/issues/654 (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IZI7HYGN7VZAYFV6UV3SRLYF7QGERXIU/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FHJI32SN4FNAUVNALVGOKWHNSQ6XS3M5/ (opens in a new tab)
- vicarius.io/vsociety/posts/algorithm-confusion-in-lepture-authlib-cve-2024-37568 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/10/msg00032.html (opens in a new tab)