Skip to content
StratQuad

Threats

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

CVSS 4.0
6.9
MEDIUM
EPSS score
0.01
Probability of exploitation in 30 days
EPSS percentile
72nd
Share of scored CVEs at or below this one
Added to KEV
2 Jun 2025
CISA due date
23 Jun 2025
Applies to US federal agencies

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

Daily EPSS score, 3 Nov to 14 Nov, source FIRST

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