CVE-2024-38371
Insufficient access control for OAuth2 Device Code flow in authentik
Description
authentik is an open-source Identity Provider. Access restrictions assigned to an application were not checked when using the OAuth2 Device code flow. This could potentially allow users without the correct authorization to get OAuth tokens for an application and access it. This issue has been patched in version(s) 2024.6.0, 2024.2.4 and 2024.4.3.
INFO
Published Date :
June 28, 2024, 6:15 p.m.
Last Modified :
Aug. 21, 2025, 4:01 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source | 
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | [email protected] | ||||
| CVSS 3.1 | CRITICAL | [email protected] | 
References to Advisories, Solutions, and Tools
                                            Here, you will find a curated list of external links that provide in-depth
                                            information, practical solutions, and valuable tools related to
                                            CVE-2024-38371.
                                        
| URL | Resource | 
|---|---|
| https://github.com/goauthentik/authentik/releases/tag/version%2F2024.2.4 | Release Notes | 
| https://github.com/goauthentik/authentik/releases/tag/version%2F2024.4.3 | Release Notes | 
| https://github.com/goauthentik/authentik/releases/tag/version%2F2024.6.0 | Release Notes | 
| https://github.com/goauthentik/authentik/security/advisories/GHSA-jq3m-37m7-gp45 | Vendor Advisory Mitigation | 
| https://github.com/goauthentik/authentik/releases/tag/version%2F2024.2.4 | Release Notes | 
| https://github.com/goauthentik/authentik/releases/tag/version%2F2024.4.3 | Release Notes | 
| https://github.com/goauthentik/authentik/releases/tag/version%2F2024.6.0 | Release Notes | 
| https://github.com/goauthentik/authentik/security/advisories/GHSA-jq3m-37m7-gp45 | Vendor Advisory Mitigation | 
CWE - Common Weakness Enumeration
            While CVE identifies
            specific instances of vulnerabilities, CWE categorizes the common flaws or
            weaknesses that can lead to vulnerabilities. CVE-2024-38371 is
            associated with the following CWEs:
        
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
            (CAPEC)
            stores attack patterns, which are descriptions of the common attributes and
            approaches employed by adversaries to exploit the CVE-2024-38371
            weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
			The following list is the news that have been mention
			CVE-2024-38371 vulnerability anywhere in the article.
		
                The following table lists the changes that have been made to the
                CVE-2024-38371 vulnerability over time.
            
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
- 
                            Initial Analysis by [email protected]Aug. 21, 2025 Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Added CPE Configuration OR *cpe:2.3:a:goauthentik:authentik:*:*:*:*:*:*:*:* versions up to (excluding) 2024.2.4 *cpe:2.3:a:goauthentik:authentik:*:*:*:*:*:*:*:* versions from (including) 2024.4.0 up to (excluding) 2024.4.3 Added Reference Type CVE: https://github.com/goauthentik/authentik/releases/tag/version%2F2024.2.4 Types: Release Notes Added Reference Type GitHub, Inc.: https://github.com/goauthentik/authentik/releases/tag/version%2F2024.2.4 Types: Release Notes Added Reference Type CVE: https://github.com/goauthentik/authentik/releases/tag/version%2F2024.4.3 Types: Release Notes Added Reference Type GitHub, Inc.: https://github.com/goauthentik/authentik/releases/tag/version%2F2024.4.3 Types: Release Notes Added Reference Type CVE: https://github.com/goauthentik/authentik/releases/tag/version%2F2024.6.0 Types: Release Notes Added Reference Type GitHub, Inc.: https://github.com/goauthentik/authentik/releases/tag/version%2F2024.6.0 Types: Release Notes Added Reference Type CVE: https://github.com/goauthentik/authentik/security/advisories/GHSA-jq3m-37m7-gp45 Types: Mitigation, Vendor Advisory Added Reference Type GitHub, Inc.: https://github.com/goauthentik/authentik/security/advisories/GHSA-jq3m-37m7-gp45 Types: Mitigation, Vendor Advisory 
- 
                            CVE Modified by af854a3a-2127-422b-91ae-364da2661108Nov. 21, 2024 Action Type Old Value New Value Added Reference https://github.com/goauthentik/authentik/releases/tag/version%2F2024.2.4 Added Reference https://github.com/goauthentik/authentik/releases/tag/version%2F2024.4.3 Added Reference https://github.com/goauthentik/authentik/releases/tag/version%2F2024.6.0 Added Reference https://github.com/goauthentik/authentik/security/advisories/GHSA-jq3m-37m7-gp45 
- 
                            CVE Received by [email protected]Jun. 28, 2024 Action Type Old Value New Value Added Description authentik is an open-source Identity Provider. Access restrictions assigned to an application were not checked when using the OAuth2 Device code flow. This could potentially allow users without the correct authorization to get OAuth tokens for an application and access it. This issue has been patched in version(s) 2024.6.0, 2024.2.4 and 2024.4.3. Added Reference GitHub, Inc. https://github.com/goauthentik/authentik/security/advisories/GHSA-jq3m-37m7-gp45 [No types assigned] Added Reference GitHub, Inc. https://github.com/goauthentik/authentik/releases/tag/version%2F2024.2.4 [No types assigned] Added Reference GitHub, Inc. https://github.com/goauthentik/authentik/releases/tag/version%2F2024.4.3 [No types assigned] Added Reference GitHub, Inc. https://github.com/goauthentik/authentik/releases/tag/version%2F2024.6.0 [No types assigned] Added CWE GitHub, Inc. CWE-285 Added CWE GitHub, Inc. CWE-284 Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L 
 
                         
                         
                         
                                             
                                            