{"id":"CVE-2024-23647","published":"2024-01-30T16:10:55Z","modified":"2025-06-17T21:29:18Z","title":"PKCE downgrade attack in Authentik","vendor":"goauthentik","product":"authentik","tier":"tail","description":{"text":"Authentik is an open-source Identity Provider. There is a bug in our implementation of PKCE that allows an attacker to circumvent the protection that PKCE offers. PKCE adds the code_challenge parameter to the authorization request and adds the code_verifier parameter to the token request. Prior to 2023.8.7 and 2023.10.7, a downgrade scenario is possible: if the attacker removes the code_challenge parameter from the authorization request, authentik will not do the PKCE check. Because of this bug, an attacker can circumvent the protection PKCE offers, such as CSRF attacks and code injection attacks.  Versions 2023.8.7 and 2023.10.7 fix the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0074,"percentile":0.5063,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"references":[{"url":"https://github.com/goauthentik/authentik/security/advisories/GHSA-mrx3-gxjx-hjqj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/goauthentik/authentik/commit/38e04ae12720e5d81b4f7ac77997eb8d1275d31a","tags":["x_refsource_MISC"]}],"priority":{"score":14.7,"factors":[{"name":"EPSS percentile","points":10.13},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"goauthentik","affectedVersions":[{"vendor":"goauthentik","product":"authentik","versions":["< 2023.8.7",">= 2023.10.0, < 2023.10.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-01-31T17:22:55.663962Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"goauthentik.io","vulnerableRanges":[">=2023.10.0, <2023.10.7","<2023.8.7","all versions"],"patched":["2023.10.7","2023.8.7"],"from":["GHSA-mrx3-gxjx-hjqj","GO-2024-2479"],"provenance":"source"}],"summary":{"text":"A flaw in authentik, an open-source Identity Provider, lets PKCE protection be bypassed: its implementation fails to enforce the code_challenge/code_verifier check when the code_challenge parameter is omitted from the authorization request. An attacker who can induce a victim to follow a crafted authorization request, with the code_challenge removed, can circumvent the protection PKCE provides against attacks such as CSRF and code injection, and this requires user interaction and no prior authentication.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:40:17Z"},"euvd":{"id":"EUVD-2024-0389","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-goauthentik-authentik-cve-2023-48228","parents":[{"from":"CVE-2023-48228","to":"CVE-2024-23647","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["authentik/providers/oauth2/views/token.py"],"commits":["https://github.com/goauthentik/authentik/commit/3af77ab3821fe9c7df8055ba5eade3d1ecea03a6","https://github.com/goauthentik/authentik/commit/6b9afed21f7c39f171a4a445654cfe415bba37d5","https://github.com/goauthentik/authentik/commit/38e04ae12720e5d81b4f7ac77997eb8d1275d31a"],"basis":"shared function","functions":["__post_init_code"]},{"kind":"similar","provenance":"machine","score":0.44,"basis":"same product + CWE + description similarity"}]}],"children":[{"from":"CVE-2024-23647","to":"CVE-2024-52289","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["authentik/providers/oauth2/views/token.py"],"commits":["https://github.com/goauthentik/authentik/commit/38e04ae12720e5d81b4f7ac77997eb8d1275d31a","https://github.com/goauthentik/authentik/commit/85bb638243c8d7ea42ddd3b15b3f51a90d2b8c54"],"basis":"shared function","functions":["__post_init_code"]}]}]}}