GitHub Advisoryadvisory · PyPI
GHSA-5357-c2jx-v7qh Authlib has algorithm confusion with asymmetric public keys
HIGH
Official page ↗
- Aliases
- CVE-2024-37568
- Ecosystem
- PyPI
- Packages
- authlib
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- Weaknesses
- CWE-284, CWE-327, CWE-347
- Reviewed
- 2024-06-10
Affected packages
• PyPI authlib: < 1.3.1 → fixed in 1.3.1
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.)
Related
Alias · CVE (1)
- CVE-2024-37568 lepture Authlib before 1.3.1 has algorithm confusion with asymmetric public keys. vulnerability
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-37568 advisory
- https://github.com/lepture/authlib/issues/654 web
- https://github.com/lepture/authlib package
- https://github.com/pypa/advisory-database/tree/main/vulns/authlib/PYSEC-2024-52.yaml web
- https://lists.debian.org/debian-lts-announce/2025/10/msg00032.html web
- 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