llamaCVEVulnerability Intelligence
/
authentik

CVE-2024-52289

authentik has an insecure default configuration for OAuth2 Redirect URIs

UnclearParche disponible
Descargar PNG JSON
CVSS 4.0
7.9
Alta
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H Fuente: CNA
9.8NVD · CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versiones2024.8.5 · 2024.10.3
Exposición727 dDesde la divulgación, 21 nov 2024, 12:18 p. m.
Detección711 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCAtender
Priorizar en el próximo ciclo de cambios
Sin explotación conocida, automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
Modificada
Explotación
Remediación
Monitoreo
Detectada
Fuente: OSV +1
21 nov 24
23 sept 25
3 nov 26
18 nov 26
19 nov 26
21 nov 24
22 may 25
20 nov 25
21 may 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2024-52289 divulgada · CVSS 7.9 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Monitoreo Verificada Última verificación contra las fuentes
Resumen

authentik is an open-source identity provider. Redirect URIs in the OAuth2 provider in authentik are checked by RegEx comparison. When no Redirect URIs are configured in a provider, authentik will automatically use the first redirect_uri value received as an allowed redirect URI, without escaping characters that have a special meaning in RegEx. Similarly, the documentation did not take this into consideration either. Given a provider with the Redirect URIs set to https://foo.example.com, an attacker can register a domain fooaexample.com, and it will correctly pass validation. authentik 2024.8.5 and 2024.10.3 fix this issue. As a workaround, When configuring OAuth2 providers, make sure to escape any wildcard characters that are not intended to function as a wildcard, for example replace `.` with `\.`.

Affects authentik OAuth2 providers with no Redirect URIs configured, in versions before 2024.8.5 and from 2024.10.0-rc1 to before 2024.10.3. Fixed in 2024.8.5 and 2024.10.3.

¿Qué significa?Redirect URI checking uses a RegEx comparison that does not escape special characters. A look-alike domain registered by an attacker can pass validation, so OAuth2 flows can be sent to a domain the attacker controls.
¿Quién está afectado?The issue involves authentik versions before 2024.8.5 and versions from 2024.10.0-rc1 up to 2024.10.3. The setup involved is an OAuth2 provider with no Redirect URIs configured, where authentik uses the first redirect_uri it receives. To check a version, look at the authentik version shown in the admin interface or the image tag in your deployment.
¿Qué hacer?Upgrade to authentik 2024.8.5 if you are on the older line, or to 2024.10.3 or later if you are on the 2024.10 line. Both fixed versions are named in the advisory's affected ranges.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
No Redirect URIs are configured in the OAuth2 provider“When no Redirect URIs are configured in a provider, authentik will automatically use the first redirect_uri value received”
02
The Redirect URI is checked by RegEx comparison without escaping RegEx special characters“without escaping characters that have a special meaning in RegEx”
¿Quién debe revisar?Teams running authentik OAuth2 providers, especially those with no Redirect URIs configured, on versions before 2024.8.5 or 2024.10.3
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · NVD
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
authentik< 2024.8.5
authentik≥ 2024.10.0-rc1 < 2024.10.3
2024.8.5
2024.10.0-rc1
2024.10.3
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
authentik
Corregida 2024.8.5, 2024.10.3 — —
Versiones corregidas2024.8.52024.10.3
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/goauthentik/authentik/security/advisories/GHSA-3q5w-6m3x-64gj
Otrahttps://github.com/goauthentik/authentik/commit/85bb638243c8d7ea42ddd3b15b3f51a90d2b8c54

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.