CVE-2025-35939

Craft CMS stores user-provided content in session files

MEDIUM
5.3
CVSS Score
Published: May 7, 2025 at 10:41 PM UTC
Updated: June 17, 2026 at 09:14 AM UTC
2 products affected across 2 vendorsCraftcmsCraft CMS

Using CMS by Craft?

Get instant alerts when new vulnerabilities affect CMS - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploitation
CISA KEV
Exploit prediction
EPSS 1%
SSVC
Active

Actively Exploited

CISA Known Exploited Vulnerabilities (KEV) Catalog

EPSS Score1.3%

EPSS (Exploit Prediction Scoring System) estimates a 1.3% chance this CVE is exploited in the wild within the next 30 days — higher than 71% of all CVEs. It complements CVSS: a high EPSS on a mid-severity CVE can still be urgent.

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.

Required Action
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Ransomware Use
Unknown
Added to KEV
Jun 2, 2025
Remediation Due
Jun 23, 2025
494 days overdue

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.15.35.0.0 ≤ v < 5.7.5
Affected range stops below 4.15.3, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.7.5, so it looks safe — our inference, not a vendor statement
v < 4.15.3v < 5.7.5
Vendor states this is fixed in 4.15.3 (unaffected)
Vendor states this is fixed in 5.7.5 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

Patch and advisory references

References (6)

Patch
Source: 9119a7d8-5eab-497f-8521-727c672e3725
https://github.com/craftcms/cms/pull/17220
Release Notes
Source: 9119a7d8-5eab-497f-8521-727c672e3725
https://github.com/craftcms/cms/releases/tag/4.15.3
Release Notes
Source: 9119a7d8-5eab-497f-8521-727c672e3725
https://github.com/craftcms/cms/releases/tag/5.7.5
VDB Entry
Source: 9119a7d8-5eab-497f-8521-727c672e3725
https://www.cve.org/CVERecord?id=CVE-2025-35939
US Government Resource
Source: 134c704f-9b21-4f2e-91b3-4a467353bcc0
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-35939

SSVC — Action Prioritization

SSVCActiveAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.3MEDIUMcisa-cg
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-472NVD-CWE-Other

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card