Skip to content
Threat Brief

← All advisories

CVE-2025-35939

Medium 6.9KEV · exploitedFix available

Craft CMS stores user-provided content in session files

Record last updated

CVSS score

6.9

Medium on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

1.4%

Higher than 73% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

516days overdue

Passed 516 days ago for U.S. federal agencies

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.

Weakness: CWE-472

Patching and mitigation

Patch status
Fix available (source: CVE record (cisa-cg))
Fix documented (source date)
Mitigation
None documented
Vendor guidance
github.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
CraftCMSall versions before 5.7.55.7.5CVE Program
CraftCMSall versions before 4.15.34.15.3CVE Program
Craft CMSCraft CMSNot documentedNot documentedCISA KEV
CraftCMS (unaffected)4.15.3Not documentedCVE Program
CraftCMS (unaffected)5.7.5Not documentedCVE Program

Timeline

  1. Disclosure

    CVE record published by cisa-cg

    Source: CVE Program (opens in a new tab)

  2. 02 Jun 2025KEV

    Added to the CISA Known Exploited Vulnerabilities catalog

    Source: CISA KEV (opens in a new tab)

  3. 02 Jun 2025Exploitation

    Exploitation confirmed by CISA KEV

    Source: CISA KEV (opens in a new tab)

  4. Patch

    Fix documented by CVE record (cisa-cg)

    Source: CVE record (cisa-cg) (opens in a new tab)

Vendor guidance and references