Security Resilience

CVE-2025-35939

Craftcms Craft Cms ≤ 4.15.3

CISA KEVActive ExploitationEUVD Exploited
Published
07 May 2025
Modified
17 June 2026
KEV Added
02 June 2025
Patch / advisory
CVSS Score v4 6.9
Click a component to see what it means
Raw vectorCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS Score 0.014 73th percentile
Risk Priority 75 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2025-35939 is a medium-severity External Control of Assumed-Immutable Web Parameter (CWE-472) vulnerability in Craftcms Craft Cms. Its CVSS base score is 6.9 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Data Manipulation (T1565); ranked in the top 27% of CVEs by exploit likelihood; CISA has added it to the Known Exploited Vulnerabilities catalog.

The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

Craft CMS is vulnerable to storage of arbitrary content supplied by unauthenticated users inside PHP session files on disk. The affected component is the authentication redirect logic that writes an unsanitized return URL parameter into a file named sess_[session_value] under /var/lib/php/sessions. Versions prior to 5.7.5 and 4.15.3 are impacted.

An unauthenticated remote attacker can supply a crafted return URL containing PHP code or other content when requesting a protected resource. Craft CMS then writes the supplied value into a predictable session file on the server, enabling later access or execution of that content when combined with an independent file-inclusion or code-execution flaw.

The project has published releases 5.7.5 and 4.15.3 that correct the issue, along with a corresponding pull request that adds sanitization of the return URL before it is stored in the session. No information is provided about observed exploitation in the wild.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)
KEV Date Added
02 June 2025

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1565 Data Manipulation Impact
Adversaries may insert, delete, or manipulate data in order to influence external outcomes or hide activity, thus threatening the integrity of the data.
T1606.001 Web Cookies Credential Access
Adversaries may forge web cookies that can be used to gain access to web applications or Internet services.
T1657 Financial Theft Impact
Adversaries may steal monetary resources from targets through extortion, social engineering, technical theft, or other methods aimed at their own financial gain at the expense of the availability of these resources for victims.
T1565.002 Transmitted Data Manipulation Impact
Adversaries may alter data en route to storage or other systems in order to manipulate external outcomes or hide activity, thus threatening the integrity of the data.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-23209Same product: Craftcms Craft Cmsboth on KEV
CVE-2024-56145Same product: Craftcms Craft Cmsboth on KEV
CVE-2025-32432Same product: Craftcms Craft Cmsboth on KEV
CVE-2026-33158Same product: Craftcms Craft Cms
CVE-2026-29069Same product: Craftcms Craft Cms
CVE-2026-28696Same product: Craftcms Craft Cms
CVE-2026-28782Same product: Craftcms Craft Cms
CVE-2026-25497Same product: Craftcms Craft Cms
CVE-2026-28781Same product: Craftcms Craft Cms
CVE-2026-29113Same product: Craftcms Craft Cms

Affected Assets

craftcms
craft cms
≤ 4.15.3 · 5.0.0 — 5.7.5

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

SI-10 directly requires validation of all inputs, eliminating the assumption that client-supplied parameters remain immutable.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require server-side validation of all inputs instead of trusting client-supplied immutable parameters.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development and acceptance will detect parameter tampering vulnerabilities before deployment.

prevents

Training developers that hidden fields, cookies and URL parameters are externally controllable addresses the knowledge gap behind CWE-472, but it is a fallible human practice that catches a minority of instances, consistent with the A.6.3 -> CWE-598 anchor.

prevents

Secure coding standards require server-side verification of client-supplied data, eliminating the root cause of external control of immutable parameters.

prevents

A.8.30 carries its effect through the secure-design, coding and testing practices (8.25–8.29) its contract requires of the supplier, so a well-implemented clause reduces ordinary input-validation defects like trusting hidden form fields in delivered code the way those practices do; the owner has ruled A.8.30's ceiling on `prevents` at `partial`, and the remainder is the fallibility of the contracted practice plus code the supplier did not write.

finds

A.8.8's reach is disclosure-based (vulnerability scanning, vendor advisories, third-party component tracking) plus limited penetration testing. CWE-472 is a first-party web application implementation flaw; A.8.8 finds it where it has been published as a CVE (and there are many) or where a pen test happens to exercise the relevant hidden fields, but the bulk of instances in custom code never surface as advisories and are outside A.8.8's reach.

References