Skip to content
Server Security Center
KEVmedium5.3

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

Craft CMS · listed in the CISA catalog of actively exploited vulnerabilities since 2025-06-02.

CVSS v3.1 (CVE record)
5.3
medium
EPSS (exploit probability, 30 days)
1.4%
higher than 72.6% of all CVEs
Added to CISA KEV
2025-06-02
US federal due date 2025-06-23
Automatable (CISA SSVC)
yes
technical impact: partial

What is CVE-2025-35939?

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.

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

CISA notes

Affected and fixed versions

From the CVE record published by the vendor or CVE numbering authority.

  • Craft CMS
    Affected
    • < 4.15.3
    • < 5.7.5
    Fixed in
    • 4.15.3
    • 5.7.5

How to fix it

  • Update to a fixed version: 4.15.3, 5.7.5.
  • Vendor advisory: github.com/craftcms/cms/pull/17220
  • CISA's deadline for US federal agencies: 2025-06-23 (passed) – a useful benchmark for everyone else, too.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
Yes – attackers can automate it at scale
Technical impact
Partial – limited control or information

Weakness: CWE-472 External Control of Assumed-Immutable Web Parameter

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.