llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · craftcms/cms

GHSA-XH42-494X-2XGV

Verification code survives verify-email use and remains valid for set-password

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión5.11.0
Exposición47 dDesde la divulgación, 5 oct 2026, 12:31 p. m.
Detección44 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de la severidad declarada por GHSA (media) y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Ni fuego ni humo: solo una tarea pendiente.Rumio tranquila, pero no me olvido de esta.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
5 oct 26
18 nov 26
22 nov 26
5 oct 26
17 oct 26
29 oct 26
10 nov 26
22 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-XH42-494X-2XGV divulgada
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
GitHub

Craft’s user verification code is a single secret that authorizes two distinct unauthenticated actions — `users/verify-email` and `users/set-password` — but only one of those consumption paths invalidates it.

`Users::verifyEmailForUser()` (`src/services/Users.php:982-1010`, 5.10.13.2) clears `verificationCode` only for "pending" users, via `activateUser()` (`:1004-1006`). For an already active user who is changing their email address, the function promotes `unverifiedEmail` to `email` and returns without clearing the code.

The same code is then accepted a second time by `users/set-password`, which performs a full password reset. `set-password` itself correctly nulls the code on use (`src/elements/User.php:2655`) — only the verify-email path leaks the second use.

Net effect: one emailed code yields two independent account-recovery actions instead of one, and the victim’s own legitimate use of the code (verifying the new address) does not consume it.

Impact

An attacker who possesses a victim’s verification code — e.g., observed or leaked from a mailbox, shared inbox, or logs — and who lets (or tricks) the victim into completing the email-change verification can afterward reset the victim’s password with the same code and log in, after the victim reasonably believes the code was consumed. Honest precondition: the attacker must obtain the code out of band, and the flow starts with an email change to an active account.

Report ID: 1683

Versiones

Rangos afectados

Afectada Corregida
craftcms/cms≥ 5.0.0 < 5.11.0
5.0.0
5.11.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistcraftcms/cms
Corregida 5.11.0 — —
Versiones corregidas5.11.0
Explotación

Arsenal público

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

Referencias
Advisoryhttps://github.com/craftcms/cms/security/advisories/GHSA-xh42-494x-2xgv

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