CVE-2025-35939
MEDIUM 6.9CVSS 4.0known exploitedCraft CMS stores arbitrary content provided by unauthenticated users in session files
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.
- Published
- 7 May 2025
- Last modified
- 17 Jun 2026
- Assigned by
- 9119a7d8-5eab-497f-8521-727c672e3725
- NVD status
- Analyzed
- Weakness
- CWE-472
- Also known as
- GHSA-7vrx-9684-xrf2
- Sources
- NVDJSONCISA KEVJSONOSV GHSA-7vrx-9684-xrf2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 9119a7d8-5eab-497f-8521-727c672e3725 (Secondary) | CVSS 4.0 | MEDIUM 6.9 | 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 |
| OSV | GitHub | CVSS 4.0 | 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 | 9119a7d8-5eab-497f-8521-727c672e3725 (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N/E:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | craftcms | craft_cmscpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:* |
< 4.15.3 | 4.15.3 |
| NVD | craftcms | craft_cmscpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:* |
>= 5.0.0, < 5.7.5 | 5.7.5 |
| OSV | Packagist | craftcms/cms | >= 5.0.0-alpha.1, < 5.7.5 | 5.7.5 |
| OSV | Packagist | craftcms/cms | < 4.15.3 | 4.15.3 |
References
- https://github.com/craftcms/cms/pull/17220 · 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://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2025/va-25-147-01.json · Third Party Advisory, WEB
- https://www.cve.org/CVERecord?id=CVE-2025-35939 · VDB Entry, WEB
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-35939 · US Government Resource, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-35939 · ADVISORY
- https://github.com/craftcms/cms/commit/e4c7bac8f31010aee048409f9ef6f744a83146b2 · WEB
- https://github.com/craftcms/cms · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 7 May 2025)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 8 May 2025)
- 25 Nov 2026 20:10 UTC · CISA KEV: first stored (published 2 Jun 2025)
- 2 Jun 2025 00:00 UTC · Listed as known exploited