CVE-2025-35939

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.

Severity
MEDIUM
CVSS v3
5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N · source cna
CVSS v4
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 · source cna
Exploit chance (EPSS)
1.373%
chance of exploitation in the next 30 days
higher than 72.4% of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2025-06-02
Public exploit code
None public
Attackers are using this, but no public exploit code was found in these sources.
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA Known Exploited Vulnerabilities entry

Vulnerability nameCraft CMS External Control of Assumed-Immutable Web Parameter Vulnerability
Vendor / productCraft CMS / Craft CMS
Date added2025-06-02
Federal remediation due date2025-06-23
Required actionApply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Known ransomware campaign useUnknown

CISA SSVC decision points

Exploitationactive
Automatableyes
Technical impactpartial
Scored2025-06-06

Timeline

  1. 2025-05-07Published by the CNA22:41 UTC
  2. 2025-05-08GitHub advisory published (GHSA-7vrx-9684-xrf2)1 day after publication
  3. 2025-06-02Added to the CISA KEV catalog26 days after publication
  4. 2025-06-06CISA SSVC decision recorded30 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-7vrx-9684-xrf2, affected packages:

PackageVulnerable versionsFixed in
Packagist craftcms/cmsbefore 4.15.34.15.3
Packagist craftcms/cmsfrom 5.0.0-alpha.1 before 5.7.55.7.5

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
craftcms craft_cmsbefore 4.15.3fixed in 4.15.3from 5.0.0 before 5.7.5fixed in 5.7.54.15.35.7.5

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources