CVE-2025-35939: medium-severity vulnerability in Craft CMS
Craft CMS stores user-provided content in session files
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
Prioritize patching. It under exploitation confirmed 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.
Craft CMS stores unsanitized user input in session files on the server, which could be accessed and executed if combined with another vulnerability. An attacker can inject malicious content (like PHP code) into these files without authentication.
Unauthenticated attackers can inject arbitrary content into session files via unsanitized return URL parameters stored by Craft CMS during authentication redirects. Session files are created at predictable locations (/var/lib/php/sessions/sess_[session_value]), and the injected content may be executed if accessed through a separate vulnerability, leading to potential code execution or information disclosure.
The full analysis of this CVE is available in Portuguese →
In the same product, most dangerous first.