CVE-2025-35939
Craft CMS unauthenticated content injection into session files
An unauthenticated attacker can write arbitrary content, such as PHP code, into server session files.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | CVE-2025-35939 divulgada · CVSS 5.3 (CNA) | |
| Explotación | CISA KEV | Agregada al catálogo de vulnerabilidades explotadas | |
| Remediación | Plazo KEV | Fecha límite de remediación para agencias federales (EE. UU.) | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Craft CMS has a flaw that lets an attacker write arbitrary content, such as PHP or HTML code, into session data by putting it in the return URL of a login redirect, remotely and without logging in. The maintainers say it cannot be exploited by itself as far as they know, but it is listed as exploited in attacks.
Affects Craft CMS 4.x before 4.15.3 and 5.x before 5.7.5, where the requested return URL is saved to the PHP session unsanitized. Fixed in 4.15.3 and 5.7.5.
Descripción original del registro
Craft CMS stores arbitrary content provided by unauthenticated users in session files. This content could be accessed and executed, possibly using an independent vulnerability. Craft CMS redirects requests that require authentication to the login page and generates a session file on the server at '/var/lib/php/sessions'. Such session files are named 'sess_[session_value]', where '[session_value]' is provided to the client in a 'Set-Cookie' response header. Craft CMS stores the return URL requested by the client without sanitizing parameters. Consequently, an unauthenticated client can introduce arbitrary values, such as PHP code, to a known local file location on the server. Craft CMS versions 5.7.5 and 4.15.3 have been released to address this issue.
Condiciones y alcance
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
CMS |
Corregida | 4.15.3, 5.7.5 | — | — |
4.15.35.7.5Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/craftcms/cms/pull/17220https://github.com/craftcms/cms/releases/tag/4.15.3https://github.com/craftcms/cms/releases/tag/5.7.5https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2025/va-25-147-01.jsonhttps://www.cve.org/CVERecord?id=CVE-2025-35939Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
