CVE-2025-35939

Craft CMS stores user-provided content in session files

State
Published
Severity
6.9 Medium
Published
May 7, 2025
Updated
Feb 26, 2026
Reserved
Apr 15, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.06.9 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:Ncisa-cg
3.15.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:Ncisa-cg

Weaknesses

  • CWE-472 External Control of Assumed-Immutable Web Parameter

Affected Products

ProductVersions
CMSCraft
  • before 5.7.5Affected
  • 5.7.5Not affected
  • before 4.15.3Affected
  • 4.15.3Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.