Live threats

All CVEs / Craft CMS

CVE-2025-35939Craft CMS

External Control of Assumed-Immutable Web Parameter in Craft CMS

Medium 6.9 KEV No auth needed

Priority
56
CVSS 4.0
6.9
EPSS
—
Auth required
No
In KEV since
Jun 2, 2025
CISA deadline
Jun 23, 2025
Ransomware use
Unknown
Published
May 7, 2025
Updated
Jun 17, 2026
Category
Web application · Cross-platform
Weakness (CWE)
CWE-472
SSVC (CISA)
Exploitation: active · Automatable: yes · Technical impact: partial
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

Craft CMS stores arbitrary content from unauthenticated users in session files without sanitization. An unauthenticated attacker can introduce malicious PHP code or other content into known server session files, which could be executed when combined with another vulnerability. CISA has confirmed this vulnerability is actively exploited.

AI-generated summary (Claude) based on NVD and CISA data. Not reviewed yet: check the details in the vendor advisory.

Show the original NVD text

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.

Source text, unmodified. NVD.

Exploitation confirmed by 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.

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

Source text, unmodified. CISA KEV.

What to do

Patch available · fixed versions: 4.15.3, 5.7.5

Update Craft CMS to version 4.15.3 or later (4.x branch) or version 5.7.5 or later (5.x branch).

Vendor advisory · github.com ↗

AI-generated from public data; not reviewed.

  1. Apply the vendor's security update for Craft CMS.
  2. CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was June 23, 2025.
  3. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
  4. Check logs for signs of earlier exploitation.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist craftcms/cms ≥ 5.0.0-alpha.1 < 5.7.5 5.7.5 composer require "craftcms/cms:^5.7.5"
Packagist craftcms/cms < 4.15.3 4.15.3 composer require "craftcms/cms:^4.15.3"

Per OSV / GitHub Advisories (GHSA-7vrx-9684-xrf2). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
craftcmscraft_cms< 4.15.3
craftcmscraft_cms≥ 5.0.0 < 5.7.5

Official sources

References

Links published by the sources. Open them with care.