6.9mediumExploited
Craft CMS stores user-provided content in session files
- Severity
- 6.9medium CVSS:4.0 by cisa-cg
- Exploit likelihood
- 2.12% (higher than 83% of CVEs)
- Published
- Last changed
- Assigned by
- cisa-cg
- Also known as
- GHSA-7vrx-9684-xrf2
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Craft CMS | before 5.7.5, before 4.15.3 Not affected: 5.7.5, 4.15.3 | CVE List |
| craftcms/cms (Packagist) | from 5.0.0-alpha.1 before 5.7.5, before 4.15.3 | GitHub Advisory Database |
| craftcms craft_cms | before 4.15.3, from 5.0.0 before 5.7.5 | NVD |
| Craft CMS Craft CMS | Not specified | CISA KEV |
All scores
| cisa-cg | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| cisa-cg | 6.9medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N/E:H |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:A |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Classification
SSVC (cisa-cg): exploitation active, automatable yes, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
Craft CMS almacena contenido arbitrario proporcionado por usuarios no autenticados en archivos de sesión. Este contenido podría ser accedido y ejecutado, posiblemente aprovechando una vulnerabilidad independiente. Craft CMS redirige las solicitudes que requieren autenticación a la página de inicio de sesión y genera un archivo de sesión en el servidor, en `/var/lib/php/sessions`. Estos archivos de sesión se denominan `sess_[session_value]`, donde `[session_value]` se proporciona al cliente en un encabezado de respuesta `Set-Cookie`. Craft CMS almacena la URL de retorno solicitada por el cliente sin parámetros de limpieza. Por lo tanto, un cliente no autenticado puede introducir valores arbitrarios, como código PHP, en una ubicación de archivo local conocida en el servidor. Se han publicado las versiones 5.7.5 y 4.15.3 de Craft CMS para solucionar este problema.
CISA KEV
Craft CMS contains an external control of assumed-immutable web parameter vulnerability. This vulnerability could allow an unauthenticated client to introduce arbitrary values, such as PHP code, to a known local file location on the server. This vulnerability could be chained with CVE-2024-58136 as represented by CVE-2025-32432.
References
| https://github.com/craftcms/cms/pull/17220 | kev, patch, web | |
| https://github.com/craftcms/cms/releases/tag/4.15.3 | release-notes, web | |
| https://github.com/craftcms/cms/releases/tag/5.7.5 | release-notes, web | |
| https://www.cve.org/CVERecord?id=CVE-2025-35939 | vdb-entry, web | |
| https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2025/va-25-147-01.json | third-party-advisory, web | |
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-35939 | government-resource, us-government-resource, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-35939 | advisory, kev | |
| https://github.com/craftcms/cms/commit/e4c7bac8f31010aee048409f9ef6f744a83146b2 | web | |
| https://github.com/craftcms/cms | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-35939 changed 2026-02-26 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7vrx-9684-xrf2 changed 2025-10-22 | CC-BY-4.0 |
| NVD | CVE-2025-35939 changed 2026-06-17 | Public domain |
| CISA KEV | CVE-2025-35939 changed 2025-06-02 | CC0-1.0 |