{"id":"CVE-2025-35939","aliases":["CVE-2025-35939","GHSA-7vrx-9684-xrf2"],"related":[],"kind":"vulnerability","state":"published","title":"Craft CMS stores user-provided content in session files","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"},{"lang":"en","text":"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.","source":"kev"}],"published":"2025-05-07T22:41:29.728Z","modified":"2026-06-17T09:14:18.460Z","severity":{"scorer":"cisa-cg","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"cisa-cg","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"cisa-cg","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N/E:H","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-472"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"5.7.5","status":"affected"},{"version":"5.7.5","status":"unaffected"},{"type":"custom","introduced":"0","fixed":"4.15.3","status":"affected"},{"version":"4.15.3","status":"unaffected"}],"vendor":"Craft","product":"CMS","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0-alpha.1","status":"affected","fixed":"5.7.5"}],"ecosystem":"Packagist","package":"craftcms/cms","purl":"pkg:composer/craftcms/cms","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.15.3"}],"ecosystem":"Packagist","package":"craftcms/cms","purl":"pkg:composer/craftcms/cms","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.15.3"},{"status":"affected","introduced":"5.0.0","fixed":"5.7.5"}],"vendor":"craftcms","product":"craft_cms","cpe":"cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"Craft CMS","product":"Craft CMS","source":"kev"}],"references":[{"url":"https://github.com/craftcms/cms/pull/17220","tags":["kev","patch","web"],"sources":["cvelist","ghsa","nvd","kev"]},{"url":"https://github.com/craftcms/cms/releases/tag/4.15.3","tags":["release-notes","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/craftcms/cms/releases/tag/5.7.5","tags":["release-notes","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-35939","tags":["vdb-entry","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2025/va-25-147-01.json","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-35939","tags":["government-resource","us-government-resource","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-35939","tags":["advisory","kev"],"sources":["ghsa","kev"]},{"url":"https://github.com/craftcms/cms/commit/e4c7bac8f31010aee048409f9ef6f744a83146b2","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/cms","tags":["package"],"sources":["ghsa"]}],"credits":["Joel Land, undefined"],"assigner":"cisa-cg","kev":{"dateAdded":"2025-06-02","dueDate":"2025-06-23","name":"Craft CMS External Control of Assumed-Immutable Web Parameter Vulnerability","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","ransomware":false,"notes":"https://github.com/craftcms/cms/pull/17220 ;   https://nvd.nist.gov/vuln/detail/CVE-2025-35939"},"ssvc":{"scorer":"cisa-cg","exploitation":"active","automatable":"yes","technicalImpact":"partial","date":"2025-05-07T22:40:17.180Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-35939","url":"https://www.cve.org/CVERecord?id=CVE-2025-35939","licence":"CVE Terms of Use","modified":"2026-02-26T18:28:42.701Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7vrx-9684-xrf2","url":"https://github.com/advisories/GHSA-7vrx-9684-xrf2","licence":"CC-BY-4.0","modified":"2025-10-22T19:55:21.907Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-35939","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-35939","licence":"Public domain","modified":"2026-06-17T09:14:18.460Z"},{"source":"kev","name":"CISA KEV","id":"CVE-2025-35939","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2025-35939","licence":"CC0-1.0","modified":"2025-06-02T00:00:00.000Z"}],"updatedAt":"2026-11-25T22:58:57.787Z","epss":{"score":0.03504,"percentile":0.8948,"date":"2026-12-01T12:00:22.000Z"}}