CyberSecBulletin
CVE-2025-35939Exploited in the wildNVD status: Analyzed

Craft CMS External Control of Assumed-Immutable Web Parameter

CVE-2025-35939 is a medium-severity external control of assumed-immutable web parameter vulnerability in CMS from Craft, with a CVSS 3.1 base score of 5.3 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists versions 5.7.5, 4.15.3 as the first without the flaw, so updating CMS to one of those releases or later removes the exposure. CISA added it to the Known Exploited Vulnerabilities catalogue on June 2, 2025, which means attacks have been observed in the wild.

Patch now

Attackers are already exploiting this vulnerability, according to CISA.

What to do

  1. Update CMS to 5.7.5 or 4.15.3, whichever matches your release line, or a later version.
  2. Update Craft CMS to 4.15.3 or 5.7.5, whichever matches your release line, or a later version.
  3. 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.
  4. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
CraftCMSbefore 5.7.5; before 4.15.35.7.5, 4.15.3
Craft CMSCraft CMSbefore 4.15.3; 5.0.0 up to, but not including, 5.7.54.15.3, 5.7.5

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
NetworkCan be exploited remotely over a network, including the internet.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
NoneNo account or login is needed.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
NoneNo data is disclosed.
Integrity
LowLimited modification of data is possible.
Availability
NoneAvailability is not affected.

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 4.06.9MediumCNA
CVSS 3.15.3MediumCNA
CVSS 3.15.3MediumNVD

Official description

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.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: External Control of Assumed-Immutable Web Parameter

The web application does not sufficiently verify inputs that are assumed to be immutable but are actually externally controllable, such as hidden form fields.

How developers prevent this class of flaw

  • Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.

More External Control of Assumed-Immutable Web Parameter vulnerabilities (CWE-472)

Timeline

  1. CVE record published.
  2. Added to CISA's Known Exploited Vulnerabilities catalogue.
  3. CISA published its SSVC assessment (exploitation: active, automatable: yes, technical impact: partial).
  4. Deadline for US federal agencies to remediate, set by CISA.
  5. Record last changed materially (score, affected products, status or references).

References

Other references

Recent External Control of Assumed-Immutable Web Parameter vulnerabilities

Spotted an error? Tell us.