CVE-2025-35939: Craft CMS External Control of Assumed-Immutable Web Parameter Vulnerability
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.
Other sources
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[sessionvalue]', where '[sessionvalue]' 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.
— NVD
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[sessionvalue], where [sessionvalue] 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.
— GitHub
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/craftcms/cmsto a version that resolves this vulnerability.Fixed in 4.15.3 - Upgrade
Upgrade
composer/craftcms/cmsto a version that resolves this vulnerability.Fixed in 5.7.5
Event History
Frequently Asked Questions
What is the severity of CVE-2025-35939?
CVE-2025-35939 is considered a significant vulnerability due to the potential for arbitrary content execution by unauthenticated users.
How do I fix CVE-2025-35939?
To remediate CVE-2025-35939, upgrade Craft CMS to a version beyond 5.7.5 or 4.15.3.
Can CVE-2025-35939 be exploited remotely?
Yes, CVE-2025-35939 can be exploited remotely as it allows unauthenticated users to store arbitrary content.
What versions of Craft CMS are affected by CVE-2025-35939?
CVE-2025-35939 affects Craft CMS versions from 4.15.3 to 5.7.5.
What is the potential impact of CVE-2025-35939?
The potential impact of CVE-2025-35939 includes unauthorized access and execution of arbitrary code through session files.