Vulnerability · Published Jan 30, 2024 · Assigned by GitHub_M

CVE-2024-23647PKCE downgrade attack in Authentik

Medium 6.5

In plain English

A medium-severity improper authentication in authentik from goauthentik. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 46% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.5%top 53.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogoauthentik.io2023.10.7GHSA-mrx3-gxjx-hjqj
Gogoauthentik.io2023.8.7GHSA-mrx3-gxjx-hjqj
Gogoauthentik.iono fix listedGO-2024-2479

Affected products (as reported)

VendorProductVersions
goauthentik authentik < 2023.8.7>= 2023.10.0, < 2023.10.7

Weakness: CWE-287 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

References