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

- Severity: Medium 6.9 (CVSS:4.0, scored by cisa-cg) `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`
- Known to be exploited: yes. In CISA's catalogue since 2025-06-02. Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- Likelihood of exploitation in the next 30 days (EPSS): 3.50%, higher than 89% of CVEs (2026-12-01)
- Published: 2025-05-07T22:41:29.728Z
- Modified: 2026-06-17T09:14:18.460Z
- Also known as: GHSA-7vrx-9684-xrf2
- Weaknesses: CWE-472
- SSVC (cisa-cg): exploitation active, automatable yes, technical impact partial
- Assigned by: cisa-cg

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

(As written by CVE List.)

## Affected

- Craft CMS: before 5.7.5; before 4.15.3 (not affected: 5.7.5; 4.15.3)
- craftcms/cms (Packagist): from 5.0.0-alpha.1 before 5.7.5; before 4.15.3
- craftcms craft_cms: before 4.15.3; from 5.0.0 before 5.7.5
- Craft CMS Craft CMS: no versions given

## Every score

- cisa-cg: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- cisa-cg: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N/E:H`
- GitHub: CVSS:4.0 Medium `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:A`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/craftcms/cms/pull/17220> (kev, patch, web)
- <https://github.com/craftcms/cms/releases/tag/4.15.3> (release-notes, web)
- <https://github.com/craftcms/cms/releases/tag/5.7.5> (release-notes, web)
- <https://www.cve.org/CVERecord?id=CVE-2025-35939> (vdb-entry, web)
- <https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2025/va-25-147-01.json> (third-party-advisory, web)
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-35939> (government-resource, us-government-resource, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-35939> (advisory, kev)
- <https://github.com/craftcms/cms/commit/e4c7bac8f31010aee048409f9ef6f744a83146b2> (web)
- <https://github.com/craftcms/cms> (package)

## Sources

- CVE List: [CVE-2025-35939](https://www.cve.org/CVERecord?id=CVE-2025-35939), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-7vrx-9684-xrf2](https://github.com/advisories/GHSA-7vrx-9684-xrf2), CC-BY-4.0, modified 2025-10-22
- NVD: [CVE-2025-35939](https://nvd.nist.gov/vuln/detail/CVE-2025-35939), Public domain, modified 2026-06-17
- CISA KEV: [CVE-2025-35939](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2025-35939), CC0-1.0, modified 2025-06-02

---

Page: https://cve.day/CVE-2025-35939 · Whole record: https://cve.day/CVE-2025-35939.json · Rebuilt by cve.day 2026-11-25T22:58:57.787Z
