BLACKOUT MAP

Craft CMS · Craft CMS

CVE-2025-35939

Craft CMS stores user-provided content in session files

Exploited in attacks Medium 6.9 Attack chance: 1.3%
Share

What it is

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.

CISA: Craft CMS contains an external control of assumed-immutable web parameter vulnerability. This vulnerability could allow an unauthenticated client to introduce arbitrary values, such as PHP code, to a known local file location on the server. This vulnerability could be chained with CVE-2024-58136 as represented by CVE-2025-32432.

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.

Deadline for US federal agencies: June 23, 2025

Added to the CISA list
June 2, 2025
Published
May 7, 2025
Severity
Medium 6.9 CVSS 4.0
Chance of attacks in the next 30 days (EPSS)
1.3% in the top 28.7% of all known vulnerabilities
Weakness
CWE-472
More details
NVD · CVE.org · CISA
All references (5)

More exploited flaws from Craft CMS

AddedVulnerabilityProductSeverityAttack chance
Mar 20, 2026Code InjectionCVE-2025-32432Craft CMSCritical 10.099.8%
Jun 2, 2025Code InjectionCVE-2024-56145Craft CMSCritical 9.397%
Feb 20, 2025Code InjectionCVE-2025-23209Craft CMSHigh 8.122%

All of them →

Sources: Known Exploited Vulnerabilities (CISA, public domain), CVE records (cve.org) and EPSS (FIRST). The chance of attacks is the EPSS estimate that someone will try to exploit the flaw in the next 30 days.