CVE-2024-38371 Insufficient access control for OAuth2 Device Code flow in authentik
Attackers can bypass access controls in the OAuth2 Device Code flow to obtain tokens and access unauthorized applications in authentik.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-38371?
CVE-2024-38371 is a high-severity missing authorization vulnerability in goauthentik authentik, published on 28 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2024-38371?
1 open source package ship an affected version, including authentik. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
authentik Bitnami | All versions | 2024.6.0 |
Products include Goauthentik Authentik.
How do I fix CVE-2024-38371?
Upgrade authentik to 2024.6.0 or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2024-38371 being exploited?
There is no known exploitation of CVE-2024-38371 in the wild and no public exploit code.
Other vulnerabilities in goauthentik authentik
- CVE-2026-49448 authentik: SourceStage bypass via empty POST
- CVE-2023-46249 authentik potential installation takeover when default admin user is deleted
- CVE-2022-23555 authentik vulnerable to Improper Authentication via invitation URL token reuse
- CVE-2026-42849 authentik: Reflected XSS in SFE AutosubmitStage allows IDP account takeover
- CVE-2026-25227 authentik affected by Remote Code Execution via Context Key Injection in PropertyMapping Test Endpoint
Sources
Also known as BIT-authentik-2024-38371, GHSA-jq3m-37m7-gp45.