CVE-2024-37568: Authlib Authlib Has Algorithm Confusion With Vulnerability
HIGHCVE-2024-37568 is a HIGH (CVSS 7.4) authlib has algorithm confusion with vulnerability (CWE-284: Improper Access Control) affecting Authlib libraries in the PyPI ecosystem. The issue involves authlib has algorithm confusion with asymmetric public keys. Remediation is available by upgrading affected packages to version 1.3.1.
CVE-2024-37568 at a Glance
Security Impact
CVSS: 7.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N).
How to Fix CVE-2024-37568
To remediate this vulnerability, upgrade all affected Authlib dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install authlib>=1.3.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show authlib
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-37568, inspect your installed packages using pip:
pip show authlib
Analyze the terminal output to locate any version of Authlib in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.1), your application is affected.
Note: The pip show authlib command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Authlib, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-37568 Affected Authlib Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
authlib
|
PyPI |
< 1.3.1
|
1.3.1
|
References
Frequently Asked Questions
What is CVE-2024-37568?
Which Authlib versions are affected?
What version fixes CVE-2024-37568?
Is authlib affected?
What is the CVSS score of CVE-2024-37568?
What CWE is associated with CVE-2024-37568?
How can I check PyPI dependencies for CVE-2024-37568?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5357-c2jx-v7qh",
"modified" : "2025-11-03T18:31:14Z",
"published" : "2024-06-09T21:30:33Z",
"aliases" : [ "CVE-2024-37568" ],
"summary" : "Authlib has algorithm confusion with asymmetric public keys",
"details" : "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.)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "authlib"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-37568"
}, {
"type" : "WEB",
"url" : "https://github.com/lepture/authlib/issues/654"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/lepture/authlib"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/authlib/PYSEC-2024-52.yaml"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2025/10/msg00032.html"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FHJI32SN4FNAUVNALVGOKWHNSQ6XS3M5"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IZI7HYGN7VZAYFV6UV3SRLYF7QGERXIU"
}, {
"type" : "WEB",
"url" : "https://www.vicarius.io/vsociety/posts/algorithm-confusion-in-lepture-authlib-cve-2024-37568"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284", "CWE-327", "CWE-347" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-06-10T15:59:18Z",
"nvd_published_at" : "2024-06-09T19:15:52Z"
}
}