CVE-2024-37568
Authlib has algorithm confusion with asymmetric public keys
Also known as GHSA-5357-c2jx-v7qh, PYSEC-2024-52
Mitigation
- Upgrade authlib to 1.3.1 or later.
Who should check
- Projects that depend on PyPI package authlib (< 1.3.1)
- Anyone running n/a (versions: see the vendor advisory)
- Anyone running lepture authlib < 1.3.1
Vulnerability facts
- Affected
- authlib < 1.3.1
- Fixed in
- 1.3.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: None
- EPSS
- 0.57% chance of exploitation in 30 days (percentile 41, 2026-11-26)
- CWE
- CWE-347, CWE-284
- Modified
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.)
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-37568. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-37568.md Affected: authlib < 1.3.1 Fixed in: 1.3.1 Steps: 1. Search this machine and project for authlib (PyPI), n/a, lepture authlib: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IZI7HYGN7VZAYFV6UV3SRLYF7QGERXIU/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FHJI32SN4FNAUVNALVGOKWHNSQ6XS3M5/
- https://nvd.nist.gov/vuln/detail/CVE-2024-37568
- https://github.com/advisories/GHSA-5357-c2jx-v7qh
Exploits and PoCs
Other
- https://www.vicarius.io/vsociety/posts/algorithm-confusion-in-lepture-authlib-cve-2024-37568
- https://lists.debian.org/debian-lts-announce/2025/10/msg00032.html
- https://github.com/lepture/authlib
- https://github.com/pypa/advisory-database/tree/main/vulns/authlib/PYSEC-2024-52.yaml
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FHJI32SN4FNAUVNALVGOKWHNSQ6XS3M5
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IZI7HYGN7VZAYFV6UV3SRLYF7QGERXIU
FAQ
Is CVE-2024-37568 being exploited?
There is no confirmed exploitation: CVE-2024-37568 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.57% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-37568?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2024-37568?
authlib < 1.3.1.
Is there a fix for CVE-2024-37568?
Yes. Fixed in 1.3.1. Upgrade authlib to 1.3.1 or later.
How do I check if I'm affected by CVE-2024-37568?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.