Craft CMS · Craft CMS
CVE-2025-35939
Craft CMS stores user-provided content in session files
What it is
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.
CISA: 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.
What to do
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Deadline for US federal agencies: June 23, 2025
- Added to the CISA list
- June 2, 2025
- Published
- May 7, 2025
- Severity
- Medium 6.9 CVSS 4.0
- Chance of attacks in the next 30 days (EPSS)
- 1.3% in the top 28.7% of all known vulnerabilities
- Weakness
- CWE-472
- More details
- NVD · CVE.org · CISA
All references (5)
More exploited flaws from Craft CMS
| Added | Vulnerability | Product | Severity | Attack chance |
|---|---|---|---|---|
| Mar 20, 2026 | Code Injection | Craft CMS | Critical 10.0 | 99.8% |
| Jun 2, 2025 | Code Injection | Craft CMS | Critical 9.3 | 97% |
| Feb 20, 2025 | Code Injection | Craft CMS | High 8.1 | 22% |
Sources: Known Exploited Vulnerabilities (CISA, public domain), CVE records (cve.org) and EPSS (FIRST). The chance of attacks is the EPSS estimate that someone will try to exploit the flaw in the next 30 days.