{"id":"CVE-2023-48228","aliases":["CVE-2023-48228","BIT-AUTHENTIK-2023-48228","GHSA-fm34-v8xq-f2c3"],"related":[],"kind":"vulnerability","state":"published","title":"OAuth2: PKCE can be fully circumvented","summary":"authentik is an open-source identity provider. When initialising a oauth2 flow with a `code_challenge` and `code_method` (thus requesting PKCE), the single sign-on provider (authentik) must check if there is a matching and existing `code_verifier` during the token step. Prior to versions 2023.10.4 and 2023.8.5, authentik checks if the contents of `code_verifier` is matching only when it is provided. When it is left out completely, authentik simply accepts the token request with out it; even when the flow was started with a `code_challenge`. authentik 2023.8.5 and 2023.10.4 fix this issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"authentik is an open-source identity provider. When initialising a oauth2 flow with a `code_challenge` and `code_method` (thus requesting PKCE), the single sign-on provider (authentik) must check if there is a matching and existing `code_verifier` during the token step. Prior to versions 2023.10.4 and 2023.8.5, authentik checks if the contents of `code_verifier` is matching only when it is provided. When it is left out completely, authentik simply accepts the token request with out it; even when the flow was started with a `code_challenge`. authentik 2023.8.5 and 2023.10.4 fix this issue.","source":"cvelist"},{"lang":"es","text":"authentik es un proveedor de identidad de código abierto. Al inicializar un flujo oauth2 con un `code_challenge` y un `code_method` (solicitando así PKCE), el proveedor de inicio de sesión único (authentik) debe verificar si hay un `code_verifier` coincidente y existente durante el paso del token. Antes de las versiones 2023.10.4 y 2023.8.5, authentik verifica si el contenido de `code_verifier` coincide solo cuando se proporciona. Cuando se omite por completo, authentik simplemente acepta la solicitud del token sin él; incluso cuando el flujo se inició con un \"code_challenge\". authentik 2023.8.5 y 2023.10.4 solucionan este problema.","source":"nvd"}],"published":"2023-11-21T20:48:32.552Z","modified":"2026-09-08T08:45:35.507Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-287"],"affected":[{"ranges":[{"version":"< 2023.10.4","status":"affected"},{"version":"< 2023.8.5","status":"affected"}],"vendor":"goauthentik","product":"authentik","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"2023.8.5"},{"status":"affected","introduced":"2023.10.0","fixed":"2023.10.4"}],"vendor":"goauthentik","product":"authentik","cpe":"cpe:2.3:a:goauthentik:authentik:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2023.8.5"},{"type":"semver","introduced":"2023.10.0","status":"affected","fixed":"2023.10.4"}],"ecosystem":"Bitnami","package":"authentik","purl":"pkg:bitnami/authentik","source":"bitnami"}],"references":[{"url":"https://github.com/goauthentik/authentik/security/advisories/GHSA-fm34-v8xq-f2c3","tags":["advisory","exploit","vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/goauthentik/authentik/pull/7666","tags":["fix","patch","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/goauthentik/authentik/pull/7668","tags":["fix","patch","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/goauthentik/authentik/pull/7669","tags":["fix","patch","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/goauthentik/authentik/commit/3af77ab3821fe9c7df8055ba5eade3d1ecea03a6","tags":["fix","patch","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/goauthentik/authentik/commit/6b9afed21f7c39f171a4a445654cfe415bba37d5","tags":["fix","patch","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/goauthentik/authentik/commit/b88e39411c12e3f9e04125a7887f12354f760a14","tags":["fix","patch","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/goauthentik/authentik/blob/dd4e9030b4e667d3720be2feda24c08972602274/authentik/providers/oauth2/views/token.py#L225","tags":["product","web","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/goauthentik/authentik/releases/tag/version%2F2023.10.4","tags":["article","release-notes","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/goauthentik/authentik/releases/tag/version%2F2023.8.5","tags":["article","release-notes","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-48228","tags":["web"],"sources":["bitnami"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-48228","url":"https://www.cve.org/CVERecord?id=CVE-2023-48228","licence":"CVE Terms of Use","modified":"2024-08-02T21:23:39.088Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-48228","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-48228","licence":"Public domain","modified":"2026-06-17T06:33:47.157Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-AUTHENTIK-2023-48228","url":"https://osv.dev/vulnerability/BIT-AUTHENTIK-2023-48228","licence":"Apache-2.0","modified":"2026-09-08T08:45:35.507Z"}],"updatedAt":"2026-11-25T22:58:30.636Z","epss":{"score":0.01535,"percentile":0.75574,"date":"2026-12-01T12:00:22.000Z"}}