# CVE-2024-23647: PKCE downgrade attack in Authentik

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- 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.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2024-01-29T22:30:54.000Z
- Modified: 2026-09-10T03:50:04.988Z
- Also known as: GHSA-mrx3-gxjx-hjqj, BIT-AUTHENTIK-2024-23647, GO-2024-2479
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- goauthentik authentik: < 2023.8.7; >= 2023.10.0, < 2023.10.7; before 2023.8.7; from 2023.10.0 before 2023.10.7
- goauthentik.io (Go): from 2023.10.0 before 2023.10.7; before 2023.8.7; all versions
- authentik (Bitnami): before 2023.8.7; from 2023.10.0 before 2023.10.7

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/goauthentik/authentik/security/advisories/GHSA-mrx3-gxjx-hjqj> (advisory, third-party-advisory, web)
- <https://github.com/goauthentik/authentik/commit/38e04ae12720e5d81b4f7ac77997eb8d1275d31a> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-23647> (advisory, web)
- <https://github.com/goauthentik/authentik> (package)

## Sources

- CVE List: [CVE-2024-23647](https://www.cve.org/CVERecord?id=CVE-2024-23647), CVE Terms of Use, modified 2025-06-17
- GitHub Advisory Database: [GHSA-mrx3-gxjx-hjqj](https://github.com/advisories/GHSA-mrx3-gxjx-hjqj), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-2479](https://pkg.go.dev/vuln/GO-2024-2479), CC-BY-4.0, modified 2026-04-17
- NVD: [CVE-2024-23647](https://nvd.nist.gov/vuln/detail/CVE-2024-23647), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-AUTHENTIK-2024-23647](https://osv.dev/vulnerability/BIT-AUTHENTIK-2024-23647), Apache-2.0, modified 2026-09-08

---

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