LiveActive security incident?Get immediate response
CVE Record

CVE-2025-35939: Craft CMS stores user-provided content in session files

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.

MediumCVSS 6.9Known exploitedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

Unauthenticated visitors could make Craft CMS write attacker-chosen content into predictable server-side PHP session files. By itself, this is not described as full remote code execution, but the source says that content could be accessed and executed through a separate vulnerability. CISA KEV inclusion means exploitation has been observed and should raise urgency.

Executive priority

Treat this as high priority despite medium CVSS because CISA KEV indicates real-world exploitation. Patch exposed Craft CMS assets promptly and look for evidence of chained activity.

Technical view

Craft CMS redirected unauthenticated requests to login and created session files under /var/lib/php/sessions using a client-visible session value. It stored the requested return URL without sanitizing parameters, allowing arbitrary values in a known local file. Craft CMS 4.15.3 and 5.7.5 address the issue.

Likely exposure

Internet-facing Craft CMS deployments that have not updated to 4.15.3 or 5.7.5 are the primary concern. Exposure is higher where PHP session files are reachable through another local-file or execution flaw.

Exploitation context

The source bundle marks this CVE as in CISA KEV, supporting active exploitation. The described issue is most dangerous as part of a chain: it plants attacker-controlled content in a known session file that another flaw may access or execute.

Researcher notes

Evidence supports arbitrary session-file content injection, not a standalone exploit path. Do not assume code execution without an independent file access or execution vulnerability. The source bundle does not provide detailed indicators, exploit mechanics, or non-upgrade mitigations.

Mitigation direction

  • Upgrade Craft CMS to 5.7.5 or 4.15.3, as applicable.
  • Review Craft CMS release notes and vendor guidance for any branch-specific instructions.
  • Prioritize internet-facing Craft CMS instances because KEV status indicates exploitation.
  • Investigate suspicious PHP session files containing unexpected return URL data or code-like content.

Validation and detection

  • Inventory Craft CMS versions across production, staging, and externally hosted environments.
  • Confirm deployed versions are 5.7.5, 4.15.3, or later patched releases.
  • Check whether PHP session storage uses /var/lib/php/sessions or another local path.
  • Review web and application logs for unusual unauthenticated requests to authenticated routes.
Prepared
Confidence
high
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-472: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2025-35939 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
6.9 (4.0)
Known Exploited
Yes
Published

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
7Source links

CISA KEV status

Status
Known exploited
Source
CISA / ADP
Date added
Not provided

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
6.9CVSS 4.0MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NPrimary CVE score

Vulnerability scoring details

Base CVSS 4.0 score

6.9Medium
CVSS 4.0 vector shape for CVE-2025-35939Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
CraftCMS0, 5.7.5, 0, 4.15.3unknown
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-472 · source CWE mapping

External Control of Assumed-Immutable Web Parameter

External Control of Assumed-Immutable Web Parameter represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.