CVE-2025-35939
mediumpriority · act · 90OT risk · criticalKEV · exploitedEPSS 0.013 · 71 %ileEURUUSadded 2025-06-02remediate by 2025-06-23
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.
EPSS · scored 2026-10-26
Craft CMS External Control of Assumed-Immutable Web Parameter Vulnerability
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.
remediations
Vendor fix, mitigation, or workaround guidance, as published by each source.
A vendor fix is available.
- FixedCMScisa_csaf_it
Fixed in 4.15.3.
https://github.com/craftcms/cms/releases/tag/4.15.3
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
ATT&CK techniques
ATT&CK techniques this enables or maps to.
affected products (15)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- VA-25-147-01Craft CMS stores user-provided content session files2025-05-28csaf · cisa_csaf_itUS
Craft CMS stores user-provided content in session files. A remote, unauthenticated attacker can introduce arbitrary content, including PHP code, into session files with known names and locations. If an attacker can access these files, possibly through another vulnerability such as CVE-2024-58136 (or CVE-2025-32432). For context, Yii fixed CVE-2024-4990 then later re-introduced it as CVE-2024-58136. Craft CMS assigned CVE-2025-32432 to the Craft CMS inheritance of CVE-2024-58136.
- GHSA-7vrx-9684-xrf2Craft CMS stores arbitrary content provided by unauthenticated users in session files2025-05-08ghsa · osvUS
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.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (17)
External citations — patches, advisories, analysis.
- https://github.com/craftcms/cms/pull/17220cnnvd
- https://github.com/craftcms/cms/releasesPatchcnnvd
- https://github.com/craftcms/cms/releases/tag/4.15.3cnnvd
- https://github.com/craftcms/cms/releases/tag/5.7.5cnnvd
- https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2025/va-25-147-01.jsoncnnvd
- https://www.cve.org/CVERecord?id=CVE-2025-35939cnnvd
- https://github.com/craftcms/cms/pull/17220enisa_euvd
- https://github.com/craftcms/cms/releases/tag/4.15.3enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan