CVE-2025-35939
Medium 6.9KEV · exploitedFix availableCraft CMS stores user-provided content in session files
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 73% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Passed 516 days ago for U.S. federal agencies
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.
Weakness: CWE-472
Patching and mitigation
- Patch status
- Fix available (source: CVE record (cisa-cg))
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Craft | CMS | all versions before 5.7.5 | 5.7.5 | CVE Program |
| Craft | CMS | all versions before 4.15.3 | 4.15.3 | CVE Program |
| Craft CMS | Craft CMS | Not documented | Not documented | CISA KEV |
| Craft | CMS (unaffected) | 4.15.3 | Not documented | CVE Program |
| Craft | CMS (unaffected) | 5.7.5 | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by cisa-cg
Source: CVE Program (opens in a new tab)
02 Jun 2025KEV
Added to the CISA Known Exploited Vulnerabilities catalog
Source: CISA KEV (opens in a new tab)
02 Jun 2025Exploitation
Exploitation confirmed by CISA KEV
Source: CISA KEV (opens in a new tab)
Patch
Fix documented by CVE record (cisa-cg)
Vendor guidance and references
- url (opens in a new tab)vendor-advisory
- url (opens in a new tab)
- url (opens in a new tab)
- https://nvd.nist.gov/vuln/detail/CVE-2025-35939 (opens in a new tab)government
- url (opens in a new tab)
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-35939 (opens in a new tab)government-resource
- url (opens in a new tab)