{"id":"CVE-2024-37568","aliases":["CVE-2024-37568","GHSA-5357-c2jx-v7qh","PYSEC-2024-52"],"related":[],"kind":"vulnerability","state":"published","title":"Authlib has algorithm confusion with asymmetric public keys","summary":"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.)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.)","source":"cvelist"},{"lang":"es","text":"La versión Authlib anterior a 1.3.1 tiene confusión de algoritmo con claves públicas asimétricas. A menos que se especifique un algoritmo en una llamada jwt.decode, se permite la verificación HMAC con cualquier clave pública asimétrica. (Esto es similar a CVE-2022-29217 y CVE-2024-33663).","source":"nvd"}],"published":"2024-06-09T00:00:00.000Z","modified":"2026-06-17T07:38:37.637Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-284","CWE-327","CWE-347"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"1.3.1","status":"affected"}],"vendor":"lepture","product":"authlib","cpe":"cpe:2.3:a:lepture:authlib:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.3.1"}],"ecosystem":"PyPI","package":"authlib","purl":"pkg:pypi/authlib","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.3.1"}],"vendor":"authlib","product":"authlib","cpe":"cpe:2.3:a:authlib:authlib:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.3.1"}],"ecosystem":"PyPI","package":"authlib","purl":"pkg:pypi/authlib","source":"pysec"}],"references":[{"url":"https://github.com/lepture/authlib/issues/654","tags":["exploit","issue-tracking","report","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IZI7HYGN7VZAYFV6UV3SRLYF7QGERXIU/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FHJI32SN4FNAUVNALVGOKWHNSQ6XS3M5/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.vicarius.io/vsociety/posts/algorithm-confusion-in-lepture-authlib-cve-2024-37568","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00032.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-37568","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/lepture/authlib","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/authlib/PYSEC-2024-52.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FHJI32SN4FNAUVNALVGOKWHNSQ6XS3M5","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IZI7HYGN7VZAYFV6UV3SRLYF7QGERXIU","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-5357-c2jx-v7qh","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-08-15T15:15:48.042Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-37568","url":"https://www.cve.org/CVERecord?id=CVE-2024-37568","licence":"CVE Terms of Use","modified":"2025-11-03T17:31:16.986Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5357-c2jx-v7qh","url":"https://github.com/advisories/GHSA-5357-c2jx-v7qh","licence":"CC-BY-4.0","modified":"2025-11-03T19:51:46.365Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-37568","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-37568","licence":"Public domain","modified":"2026-06-17T07:38:37.637Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-52","url":"https://osv.dev/vulnerability/PYSEC-2024-52","licence":"CC-BY-4.0","modified":"2026-06-10T17:00:37.089Z"}],"updatedAt":"2026-11-25T22:58:41.603Z","epss":{"score":0.00388,"percentile":0.35001,"date":"2026-12-01T12:00:22.000Z"}}