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

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-01)
- Published: 2024-06-28T17:58:48.169Z
- Modified: 2026-09-08T08:45:50.912Z
- Also known as: BIT-AUTHENTIK-2024-38371, GHSA-jq3m-37m7-gp45
- Weaknesses: CWE-284, CWE-285
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- goauthentik authentik: < 2024.6.0; < 2024.4.3; < 2024.2.4; before 2024.6.0; before 2024.4.3; before 2024.2.4; from 2024.4.0 before 2024.4.3
- authentik (Bitnami): before 2024.6.0

## Every score

- GitHub_M: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/goauthentik/authentik/security/advisories/GHSA-jq3m-37m7-gp45> (advisory, mitigation, vendor-advisory)
- <https://github.com/goauthentik/authentik/releases/tag/version%2F2024.2.4> (article, release-notes)
- <https://github.com/goauthentik/authentik/releases/tag/version%2F2024.4.3> (article, release-notes)
- <https://github.com/goauthentik/authentik/releases/tag/version%2F2024.6.0> (article, release-notes)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-38371> (web)

## Sources

- CVE List: [CVE-2024-38371](https://www.cve.org/CVERecord?id=CVE-2024-38371), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2024-38371](https://nvd.nist.gov/vuln/detail/CVE-2024-38371), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-AUTHENTIK-2024-38371](https://osv.dev/vulnerability/BIT-AUTHENTIK-2024-38371), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-38371 · Whole record: https://cve.day/CVE-2024-38371.json · Rebuilt by cve.day 2026-11-25T22:58:42.322Z
