llamaCVEVulnerability Intelligence
/
ash_authentication

CVE-2026-82761

Magic link single-use tokens replayable via TOCTOU race in AshAuthentication

UnclearParche disponiblerace condition
Descargar PNG JSON
CVSS 4.0
9.1
Crítica
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N Fuente: CNA
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versiones4.15.0 · 5.0.0-rc.14
Exposición63 dDesde la divulgación, 17 sept 2026, 8:09 a. m.
Detección60 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
Verificada
17 sept 26
17 nov 26
19 nov 26
17 sept 26
3 oct 26
19 oct 26
3 nov 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-82761 divulgada · CVSS 9.1 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Monitoreo Detectada Ingresó al índice
Divulgación Modificada Última actualización del registro
Monitoreo Verificada Última verificación contra las fuentes
Resumen

Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability in team-alembic AshAuthentication allows an attacker holding a leaked magic link to replay its single-use token and authenticate as the target subject. A magic link configured with single_use_token?, which is the default, is meant to be redeemable exactly once, but nothing serialises the token's validity check against its consumption, so concurrent redemptions of one token all succeed and each yields a full user token. Sign-in verifies the JWT with Jwt.verify/4 and revokes it only afterwards: AshAuthentication.Strategy.MagicLink.SignInPreparation revokes in a Query.after_action callback, and AshAuthentication.Strategy.MagicLink.SignInChange in an after_transaction hook that runs once the sign-in has already committed. AshAuthentication.TokenResource.Actions.revoke/3 writes the revocation as an upsert, so a concurrent duplicate revocation silently succeeds instead of conflicting and no request ever loses the race. This issue affects ash_authentication: from 3.9.0 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14.

Affects ash_authentication 3.9.0 up to before 4.15.0 and 5.0.0-rc.0 up to before 5.0.0-rc.14, when magic-link paths use single-use tokens. Fixed in 4.15.0 and 5.0.0-rc.14.

¿Qué significa?A time-of-check to time-of-use race lets a magic link's single-use token be redeemed more than once when two requests arrive concurrently. Someone holding a leaked link can redeem it alongside the legitimate holder and get a full authenticated session as the target user.
¿Quién está afectado?Affected versions are ash_authentication 3.9.0 up to before 4.15.0, and 5.0.0-rc.0 up to before 5.0.0-rc.14. The magic-link paths must have single_use_token? enabled, which is the default. On the 5.0 line, store_all_tokens? set to true keeps the race open, and applications generated by mix ash_authentication.install have it set to true. To check, look at the ash_authentication version in mix.lock and at the single_use_token? and store_all_tokens? settings in the application.
¿Qué hacer?Upgrade ash_authentication to 4.15.0 or 5.0.0-rc.14 or later, which are the fixed versions. The advisory names no patch identifiers or workaround.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Affected ash_authentication versions: 3.9.0 up to before 4.15.0, or 5.0.0-rc.0 up to before 5.0.0-rc.14.“This issue affects ash_authentication: from 3.9.0 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14.”
02
Magic-link paths require single_use_token? to be enabled (it is the default).“Requires single_use_token? for the magic-link paths”
03
On the 5.0 line, store_all_tokens? set to true (as installer-generated applications do) keeps the race open.“mix ash_authentication.install explicitly sets it to true”
¿Quién debe revisar?Teams running ash_authentication 4.x or 5.0 release candidates that use magic-link or sign-in-token authentication
Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:P
NingunoPresentes
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaPasivaActiva
Confid. (sistema)VC:H
AltoBajoNinguno
Integridad (sistema)VI:H
AltoBajoNinguno
Disponib. (sistema)VA:N
AltoBajoNinguno
Confid. (posterior)SC:N
AltoBajoNinguno
Integridad (posterior)SI:N
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
ash_authentication≥ 3.9.0 < 4.15.0
ash_authentication≥ 5.0.0-rc.0 < 5.0.0-rc.14
3.9.0
4.15.0
5.0.0-rc.0
5.0.0-rc.14
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
ash_authentication
Corregida 4.15.0, 5.0.0-rc.14 — —
Versiones corregidas4.15.05.0.0-rc.14
Explotación

Arsenal público

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

Registro
EscenarioGENERALEEF
Referencias
Fabricantehttps://github.com/team-alembic/ash_authentication/security/advisories/GHSA-23gr-vcp4-r27q
Parchehttps://github.com/team-alembic/ash_authentication/commit/18dfdb36c14aa6a61df8572bce2d5ec36b1d9840
Parchehttps://github.com/team-alembic/ash_authentication/commit/9ef6864b8833d3b795427a7b8dc518a4997d41ab
Otrahttps://cna.erlef.org/cves/CVE-2026-82761.html
Otrahttps://osv.dev/vulnerability/EEF-CVE-2026-82761
Otrahttps://github.com/team-alembic/ash_authentication/commit/cf3d227ef25912cf1b0c5fa80f20001f5c46a102

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