# CVE-2025-35939: Craft CMS stores user-provided content in session files

> CVE-2025-35939: Craft CMS stores user-provided content in session files. CVSS 5.3 (CVSS 3.1), in CISA KEV.

Canonical: https://rewindex.com/cve/CVE-2025-35939
Last updated: 2026-06-17T09:14:18Z

- Published: 2025-05-07 22:41 UTC · Updated: 2026-06-17 09:14 UTC · Assigner: cisa-cg
- CVSS: 5.3 (CVSS 3.1) · Severity: Medium · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- EPSS: 1.3%, 71th percentile (scored 2026-10-25)
- CISA KEV: yes, added 2025-06-02, federal due date 2025-06-23, ransomware use: Unknown
- CWE: CWE-472

## 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.

## 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.

## Affected vendors and products

- Craft: CMS

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-35939)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-35939)
- [https://github.com/craftcms/cms/pull/17220](https://github.com/craftcms/cms/pull/17220)
- [https://github.com/craftcms/cms/releases/tag/4.15.3](https://github.com/craftcms/cms/releases/tag/4.15.3)
- [https://github.com/craftcms/cms/releases/tag/5.7.5](https://github.com/craftcms/cms/releases/tag/5.7.5)
- [https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf\_files/IT/white/2025/va-25-147-01.json](https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2025/va-25-147-01.json)
- [https://www.cve.org/CVERecord?id=CVE-2025-35939](https://www.cve.org/CVERecord?id=CVE-2025-35939)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-35939 · Markdown: https://rewindex.com/cve/CVE-2025-35939.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-35939 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T04:06:20.271Z
