Actively exploited vulnerability / CVE-2025-35939
Craft CMS: anyone can plant code on your website's server
This flaw lets an attacker, with no account or password, place content of their choosing, including code, in a file on the server hosting your website. Combined with another vulnerability, that code can be run, which can mean takeover of the site and the data in it. It is on the lists of vulnerabilities used in real attacks kept by both CISA, the US cybersecurity agency, and ENISA, the EU cybersecurity agency.
- Identifier
- CVE-2025-35939 · EUVD-2025-13951
- Severity
- Medium (6.9/10)
- On the CISA list (US)
- yes, since 2 June 2025
- Deadline given to US federal agencies
- 23 June 2025
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 2.1% (FIRST's estimate for the next 30 days)
Does it concern you?
Craft CMS is a content management system for websites. You have it if your company website was built on Craft CMS, usually by a web agency or developer.
Affected are version 4 releases older than 4.15.3 and version 5 releases from 5.0.0 up to but not including 5.7.5. The version is shown in the Craft control panel; if you cannot find it, ask the agency or person who runs your site.
Affected products and versions
- Craft CMS
- craft cms: before 4.15.3; from 5.0.0 before 5.7.5
What to do
Update Craft CMS to version 4.15.3 or 5.7.5, or newer. If you cannot update right away, follow the vendor's mitigation guidance.
Versions that contain the fix: 4.15.3, 5.7.5.
The official description
The text below is the description from the public database.
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.
Sources
- CVE Program
- GitHub Advisory Database
- Vendor advisory: github.com
- Vendor advisory: nvd.nist.gov
- NVD
- ENISA EUVD
Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 29 November 2026.