CVE-2025-35939

Craft CMS stores user-provided content in session files

  • Medium 6.9
  • Exploited: added to CISA KEV 2 Jun 2025

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.

Key facts

Published
7 May 2025
Last changed
26 Feb 2026
Assigned by
cisa-cg
KEV added
2 Jun 2025
KEV fix due
23 Jun 2025
EPSS
1.373% likely to be exploited in the next 30 days, higher than 72.418% of CVEs (scores for 15 Nov 2026)
SSVC (CISA)
Exploitation: active; Automatable: yes; Technical impact: partial

Severity scores

Each score is shown as its source gave it. They are not averaged or merged.

  • 5.3CVSS 3.1, Mediumfrom the CNA (cisa-cg)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
  • 6.9CVSS 4.0, Mediumfrom the CNA (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

What to do

  • Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.CISA KEV required action

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
CraftCMS
  • Default status: unknown
  • 0 up to but excluding 5.7.5 (affected)
  • 5.7.5 (unaffected)
  • 0 up to but excluding 4.15.3 (affected)
  • 4.15.3 (unaffected)

Timeline

  1. 7 May 2025 Published
  2. 2 Jun 2025 CVE-2025-35939 added to CISA KEV
  3. 2 Jun 2025 Added to the CISA KEV catalogue

Weakness

References