Skip to content

CVE-2024-23647 PKCE downgrade attack in Authentik

HighCVSS 8.8 EPSS 0.55%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

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.

Upgrade path

2 packages: 1 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
goauthentik.io(Go) < 2023.8.7; <= 2023.8.6; >= 2023.10.0, < 2023.10.7; >= 2023.10.0, <= 2023.10.6 +1 more 2023.8.7, 2023.10.7 Partially fixed
goauthentik authentik < 2023.8.7; = < 2023.8.7; = >= 2023.10.0, < 2023.10.7; >= 2023.10.0, < 2023.10.7 2023.8.7, 2023.10.7 Fixed

Affected products

ProductAffected versionsFixed in
goauthentik.io(Go) >= 2023.10.0, < 2023.10.7 2023.10.7
goauthentik.io(Go) < 2023.8.7 2023.8.7
goauthentik.io(Go) All versions No fix listed
goauthentik.io(Go) >= 2023.10.0, <= 2023.10.6 No fix listed
goauthentik.io(Go) <= 2023.8.6 No fix listed
goauthentik authentik = < 2023.8.7 No fix listed
goauthentik authentik = >= 2023.10.0, < 2023.10.7 No fix listed
goauthentik authentik < 2023.8.7 2023.8.7
goauthentik authentik >= 2023.10.0, < 2023.10.7 2023.10.7

References