draft preview · not published · notes marked "Before launch" will not appear on the live site

Home / Known exploited

CVE-2025-35939: Craft CMS External Control of Assumed-Immutable Web Parameter Vulnerability

Exploited in attacks

Yes. CVE-2025-35939 has been used in real attacks. CISA added it to its Known Exploited Vulnerabilities catalog on 2 June 2025. We found no public exploit code for it in Exploit-DB, Metasploit or Nuclei, so the attacks rely on tooling that is not openly published in those sources. EPSS puts the chance of further exploitation attempts in the next 30 days at 3.5%.

Exploited in real attacks
Yes. On CISA's exploited list since 2 June 2025
Used in ransomware
Not known
Public exploit code
None found in Exploit-DB, Metasploit or Nuclei
Chance of exploitation (EPSS)
3.5% in the next 30 days, higher than 89.6% of scored vulnerabilities. Scored 5 December 2026
Severity (CVSS)
5.3 Medium (version 3.1)
Affects
Craft CMS Craft CMS
Type of flaw
External Control of Assumed-Immutable Web Parameter (CWE-472)
Published
7 May 2025
US federal patch deadline
23 June 2025

What it is

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.

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.

Description from the CVE record.

Is CVE-2025-35939 being exploited?

Yes. CISA lists a vulnerability as known exploited only when it has reliable evidence of exploitation in real attacks, and it added CVE-2025-35939 on 2 June 2025. That was 26 days after the CVE was published.

Affected products

From the CVE record. Check the vendor advisory for the full list of fixed versions.

What to do

CISA's 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.

Because this flaw has already been used in attacks, patching is only half the job. If an affected system was reachable while unpatched, check it for signs of compromise before trusting it again.

How to check whether you are exposed

  1. Find every copy. List each place Craft CMS runs, including test systems and anything set up outside IT.
  2. Compare versions. Match what you find against the affected versions in the vendor advisory.
  3. Check reachability. An affected system that faces the internet is urgent; one reachable only from inside still matters once an attacker has a foothold.

HackDrill

Find out whether this is reachable in your systems.

A version number tells you a system is affected. A hacking drill tells you whether an attacker can actually get in through a flaw like this one in Craft CMS. HackDrill's AI agents attack your product, infrastructure, network and cloud the way modern attackers do, and show you the real, exploitable gaps so you can fix them first.

Other tracked vulnerabilities in Craft CMS products

CVEWhat it affectsStatusEPSSPublished
CVE-2025-32432Craft CMSPublic exploit99.8%25 April 2025
CVE-2024-56145Craft CMSPublic exploit97.3%18 December 2024
CVE-2025-23209Craft CMSNo public exploit found22.1%18 January 2025

Sources

Machine-readable: /api/cve/CVE-2025-35939.json