# CVE-2024-37568: Authlib has algorithm confusion with asymmetric public keys

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-09T00:00:00.000Z
- Modified: 2026-06-17T07:38:37.637Z
- Also known as: GHSA-5357-c2jx-v7qh, PYSEC-2024-52
- Weaknesses: CWE-284, CWE-327, CWE-347
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: mitre

## 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.)

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- lepture authlib: before 1.3.1
- authlib (PyPI): before 1.3.1
- authlib authlib: before 1.3.1

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/lepture/authlib/issues/654> (exploit, issue-tracking, report, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IZI7HYGN7VZAYFV6UV3SRLYF7QGERXIU/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FHJI32SN4FNAUVNALVGOKWHNSQ6XS3M5/> (vendor-advisory)
- <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://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://github.com/advisories/GHSA-5357-c2jx-v7qh> (advisory)

## Sources

- CVE List: [CVE-2024-37568](https://www.cve.org/CVERecord?id=CVE-2024-37568), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-5357-c2jx-v7qh](https://github.com/advisories/GHSA-5357-c2jx-v7qh), CC-BY-4.0, modified 2025-11-03
- NVD: [CVE-2024-37568](https://nvd.nist.gov/vuln/detail/CVE-2024-37568), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-52](https://osv.dev/vulnerability/PYSEC-2024-52), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-37568 · Whole record: https://cve.day/CVE-2024-37568.json · Rebuilt by cve.day 2026-11-25T22:58:41.603Z
