high7.4
CVE-2024-37568
Authlib has algorithm confusion with asymmetric public keys
Impact
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 packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | authlib | >= 0, < 1.3.1 | 1.3.1 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Authlib | Authlib | before 1.3.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/lepture/authlib/issues/654
- 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/
- 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/advisories/GHSA-5357-c2jx-v7qh
- https://nvd.nist.gov/vuln/detail/CVE-2024-37568
- 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/IZI7HYGN7VZAYFV6UV3SRLYF7QGERXIU
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FHJI32SN4FNAUVNALVGOKWHNSQ6XS3M5