Craft CMS stores unsanitised user input in session files
CVE-2025-35939Known exploitedMedium
Craft CMS stores arbitrary content that unauthenticated users provide in session files without sanitising it. An attacker can craft a request with malicious code in the return URL parameter, which Craft CMS writes to a predictable session file location on the server. If combined with another vulnerability that allows code execution from these files, the attacker could execute arbitrary code on the server.
Plain English summary of the NVD and CISA text, checked by machine against both.
Scores and dates
- Added to KEV
- 2 Jun 2025
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:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Detail
Craft CMS. CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Weakness: CWE-472 (opens in a new tab)
Affected versions
- craftcms craft cms: before 4.15.3
- craftcms craft cms: from 5.0.0, before 5.7.5