{"answers":{"affected":"3 open source packages ship an affected version, including authlib. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-37568 exists.","fix":"Upgrade authlib to 1.3.1 or later.","what":"CVE-2024-37568 is a high-severity authentication bypass vulnerability in n/a, published on 9 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-37568 and fix it if it is affected.\n\nWhat it is: CVE-2024-37568 is a high-severity authentication bypass vulnerability in n/a, published on 9 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-37568 exists.\n\nAffected packages and fixed versions:\n- authlib (PyPI): affected all versions; fixed in 1.3.1\n- authlib (PyPI): affected all versions; fixed in 1.3.1\n- authlib (PyPI): affected all versions; fixed in 1.3.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-37568/ (Markdown: https://insights.sbomify.com/CVE-2024-37568/index.md)","id":"CVE-2024-37568","markdown":"https://insights.sbomify.com/CVE-2024-37568/index.md","name":"CVE-2024-37568","record":{"aliases":["DEBIAN-CVE-2024-37568","ECHO-37cc-e0ec-bcbe","GHSA-5357-c2jx-v7qh","MGASA-2024-0238","PYSEC-2024-52","ROOT-APP-PYPI-CVE-2024-37568","SUSE-SU-2024:2064-1","UBUNTU-CVE-2024-37568","openSUSE-SU-2024:14035-1","openSUSE-SU-2026:11614-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Python JWT library","requires_auth":"none","summary":"Attackers can bypass JWT signature verification by using asymmetric public keys for HMAC validation, allowing unauthorized access.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"authlib","vendor":"authlib"}],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"},{"id":"CWE-284","name":"Improper Access Control"}],"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.)","ecosystems":["PyPI","SUSE:Linux Enterprise Module for Python 3 15 SP6","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Authlib has algorithm confusion with asymmetric public keys","id":"CVE-2024-37568","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"auth_bypass","year":"2024"},"n_packages":7,"n_references":4,"next":{"headline":"Command injection in n/a","id":"CVE-2024-37569"},"packages":[{"ecosystem":"PyPI","fixed":["1.3.1"],"introduced":["0"],"last_affected":[],"package":"authlib","purl":null,"source":"GHSA-5357-c2jx-v7qh"},{"ecosystem":"PyPI","fixed":["1.3.1"],"introduced":["0"],"last_affected":[],"package":"authlib","purl":"pkg:pypi/authlib","source":"GHSA-5357-c2jx-v7qh"},{"ecosystem":"PyPI","fixed":["1.3.1"],"introduced":["0"],"last_affected":[],"package":"authlib","purl":"pkg:pypi/authlib","source":"PYSEC-2024-52"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP6","fixed":["1.3.1-150600.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-Authlib","purl":"pkg:rpm/suse/python-Authlib\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP6","source":"SUSE-SU-2024:2064-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["1.3.1-150600.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-Authlib","purl":"pkg:rpm/opensuse/python-Authlib\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:2064-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.3.1-1.1"],"introduced":["0"],"last_affected":[],"package":"python-Authlib","purl":"pkg:rpm/opensuse/python-Authlib\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14035-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.7.2-3.1"],"introduced":["0"],"last_affected":[],"package":"python-Authlib","purl":"pkg:rpm/opensuse/python-Authlib\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11614-1"}],"prev":{"headline":"Missing authorization in n/a","id":"CVE-2024-37567"},"products":["n/a"],"published":"2024-06-09","related":[{"cvss_score":9.1,"headline":"Authlib JWS JWK Header Injection: Signature Verification Bypass","id":"CVE-2026-27962","kev_date_added":null,"published":"2026-03-16"},{"cvss_score":8.3,"headline":"Authlib Vulnerable to JWE RSA1_5 Bleichenbacher Padding Oracle","id":"CVE-2026-28490","kev_date_added":null,"published":"2026-03-16"},{"cvss_score":8.2,"headline":"Authlib: Fail-Open Cryptographic Verification in OIDC Hash Binding","id":"CVE-2026-28498","kev_date_added":null,"published":"2026-03-16"},{"cvss_score":7.7,"headline":"Authlib: Setting `alg: none` and a blank signature appears to bypass signature verification","id":"CVE-2026-28802","kev_date_added":null,"published":"2026-03-06"},{"cvss_score":7.5,"headline":"Authlib is vulnerable to Denial of Service via Oversized JOSE Segments","id":"CVE-2025-61920","kev_date_added":null,"published":"2025-10-10"},{"cvss_score":7.5,"headline":"Authlib: JWS/JWT accepts unknown crit headers (RFC violation → possible authz bypass)","id":"CVE-2025-59420","kev_date_added":null,"published":"2025-09-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["n/a"]},"summary":"Attackers can bypass JWT signature verification by using asymmetric public keys for HMAC validation, allowing unauthorized access.","url":"https://insights.sbomify.com/CVE-2024-37568/"}