CVE-2025-35939: Craft CMS stores arbitrary content provided by unauthenticated users in session files
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
— Packagist
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 - Upgrade
Upgrade
Craft CMSto a version that resolves this vulnerability.Fixed in 5.7.5 - Upgrade
Upgrade
Craft CMSto a version that resolves this vulnerability.Fixed in 4.15.3
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.