CVE-2024-38371: Insufficient access control for OAuth2 Device Code flow in authentik

CVE-2024-38371 affects 126 listed versions of authentik in the Dawnsentry catalogue.

9.8CVSS critical
None knownexploitation
under 1%EPSS (next 30 days)
28 June 2024published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

authentik

126 of 214 listed versions are affected. Fixed in 2024.4.3, 2024.2.4. The newest release, 2026.8.7, is not affected.

2024.4.2 2024.4.1 2024.4.0 2024.2.3 2024.2.2 2024.2.1 2024.2.0 2023.10.7 2023.10.6 2023.10.5 2023.10.4 2023.10.3 2023.10.2 2023.10.1 2023.10.0 2023.8.7 2023.8.6 2023.8.5 2023.8.4 2023.8.3 2023.8.2 2023.8.1 2023.8.0 2023.6.2 2023.6.1 2023.6.0 2023.5.6 2023.5.5 2023.5.4 2023.5.3 2023.5.2 2023.5.1 2023.5.0 2023.4.3 2023.4.2 2023.4.1 2023.4.0 2023.3.1 2023.3.0 2023.2.3 2023.2.2 2023.2.1 2023.2.0 2023.1.3 2023.1.2 2023.1.1 2023.1.0 2022.12.3 2022.12.2 2022.12.1 2022.12.0 2022.11.4 2022.11.3 2022.11.2 2022.11.1 2022.11.0 2022.10.4 2022.10.3 2022.10.2 2022.10.1 and 66 more

What it is

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by GitHub on 28 June 2024. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2024-38371 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.