CVE-2024-37568
HIGH 7.5CVSS 3.1Authlib has algorithm confusion with asymmetric public keys
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.)
- Published
- 9 Jun 2024
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-284CWE-327CWE-347
- Also known as
- GHSA-5357-c2jx-v7qhPYSEC-2024-52
- Sources
- NVDJSONOSV GHSA-5357-c2jx-v7qhJSONOSV PYSEC-2024-52JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | authlib | authlibcpe:2.3:a:authlib:authlib:*:*:*:*:*:*:*:* |
< 1.3.1 | 1.3.1 |
| OSV | PyPI | authlib | < 1.3.1 | 1.3.1 |
References
- https://github.com/lepture/authlib/issues/654 · Exploit, Issue Tracking, WEB, REPORT
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FHJI32SN4FNAUVNALVGOKWHNSQ6XS3M5/ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IZI7HYGN7VZAYFV6UV3SRLYF7QGERXIU/ · WEB
- https://www.vicarius.io/vsociety/posts/algorithm-confusion-in-lepture-authlib-cve-2024-37568 · WEB
- https://lists.debian.org/debian-lts-announce/2025/10/msg00032.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-37568 · ADVISORY
- https://github.com/lepture/authlib · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/authlib/PYSEC-2024-52.yaml · WEB
- https://github.com/advisories/GHSA-5357-c2jx-v7qh · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 9 Jun 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Jun 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 9 Jun 2024)