CVE-2025-35939
published medium CVSS 4.0 · 6.9Craft CMS stores user-provided content in session files
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Craft | — | CMS0 to < 5.7.5 (affected · custom) · 5.7.5 (unaffected) · 0 to < 4.15.3 (affected · custom) · 4.15.3 (unaffected) · Other versions: unknown | Version-specific | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- cisa-cg · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.3 | medium | cisa-cg · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Craft | CMS | 0 to < 5.7.5 (affected · custom)5.7.5 (unaffected)0 to < 4.15.3 (affected · custom)4.15.3 (unaffected)Default: unknown | cisa-cg · cna |
Weaknesses
1- CWE-472 CWE-472 External Control of Assumed-Immutable Web Parameter
References
6- url https://github.com/craftcms/cms/pull/17220
- url https://github.com/craftcms/cms/releases/tag/4.15.3
- url https://github.com/craftcms/cms/releases/tag/5.7.5
- url https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2025/va-25-147-01.json
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-35939
- url https://www.cve.org/CVERecord?id=CVE-2025-35939
Provider assertions
2cisa-cg · cna
Craft CMS stores user-provided content in session files
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 13f837459beee32a753dfe8958ff22ef6d53bc5bc0a5bf1bf6c7af9d09f50350
- Ingested
- 23 Sep 2026, 08:46:06 UTC
- Source record
- Official CVE record