CVE-2025-35939
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: External Control of Assumed-Immutable Web Parameter
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Craft CMS External Control of Assumed-Immutable Web Parameter Vulnerability |
|---|---|
| Vendor / product | Craft CMS / Craft CMS |
| Date added | 2025-06-02 |
| Federal remediation due date | 2025-06-23 |
| 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. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2025-06-06 |
Timeline
- 2025-05-07Published by the CNA22:41 UTC
- 2025-05-08GitHub advisory published (GHSA-7vrx-9684-xrf2)1 day after publication
- 2025-06-02Added to the CISA KEV catalog26 days after publication
- 2025-06-06CISA SSVC decision recorded30 days after publication
Exploit and advisory records
GitHub advisory GHSA-7vrx-9684-xrf2, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Packagist craftcms/cms | before 4.15.3 | 4.15.3 |
| Packagist craftcms/cms | from 5.0.0-alpha.1 before 5.7.5 | 5.7.5 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| craftcms craft_cms | before 4.15.3fixed in 4.15.3from 5.0.0 before 5.7.5fixed in 5.7.5 | 4.15.35.7.5 |
References
- https://github.com/craftcms/cms/pull/17220
- https://github.com/craftcms/cms/releases/tag/4.15.3
- https://github.com/craftcms/cms/releases/tag/5.7.5
- https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2025/va-25-147-01.json
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-35939
- https://www.cve.org/CVERecord?id=CVE-2025-35939
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2025-35939'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2025-35939'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2025-35939'curl 'https://api.contrastcyber.com/cve_products/CVE-2025-35939'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2025-35939'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).