CVE-2025-35939
CVE-2025-35939 is a medium-severity vulnerability in Craftcms Craft Cms with a CVSS 3.x base score of 5.3. It is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, confirming it has been exploited in the wild (added 2025-06-02). The underlying weakness is classified as CWE-472.
Key facts
- Severity: Medium (CVSS 3.x base score 5.3)
- CVSS v4: 6.9
- EPSS exploit prediction: 1% (62nd percentile)
- Actively exploited: Yes — listed in CISA KEV (added 2025-06-02)
- EU (EUVD) id: EUVD-2025-13951
- EU exploitation: Flagged exploited in the ENISA EU Vulnerability Database (since 2025-06-02)
- Weakness: CWE-472
- Affected product: Craftcms Craft Cms
- Published:
- Last modified:
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.
Frequently asked questions
- 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.
- How severe is CVE-2025-35939?
- CVE-2025-35939 has a CVSS 3.x base score of 5.3, rated medium severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity low, and availability none.
- Is CVE-2025-35939 being actively exploited?
- Yes. CVE-2025-35939 is on CISA's Known Exploited Vulnerabilities (KEV) catalog, added on 2025-06-02, which means active exploitation has been confirmed. It should be prioritised for remediation.
- What products are affected by CVE-2025-35939?
- CVE-2025-35939 affects Craftcms Craft Cms. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2025-35939?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Because this CVE is known to be actively exploited, treat remediation as urgent — CISA KEV typically sets a short remediation deadline.
- Does CVE-2025-35939 have an EU (EUVD) identifier?
- Yes. CVE-2025-35939 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-13951. It is also flagged as exploited in the EUVD (since 2025-06-02).
- When was CVE-2025-35939 published?
- CVE-2025-35939 was published on 2025-05-07 and last updated on 2026-06-17.
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.cve.org/CVERecord?id=CVE-2025-35939
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-35939
Affected products (1)
- cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*
More vulnerabilities in Craftcms Craft Cms
- CVE-2025-32432 — Critical (CVSS 10.0): Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond. Starting from…
- CVE-2023-41892 — Critical (CVSS 10.0): Craft CMS is a platform for creating digital experiences. This is a high-impact, low-complexity attack vector. Users…
- CVE-2026-32267 — Critical (CVSS 9.8): Craft CMS is a content management system (CMS). From version 4.0.0-RC1 to before version 4.17.6 and from version…
- CVE-2024-56145 — Critical (CVSS 9.8): Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond. Users of affected…
- CVE-2024-37843 — Critical (CVSS 9.8): Craft CMS up to v3.7.31 was discovered to contain a SQL injection vulnerability via the GraphQL API endpoint.
- CVE-2021-27903 — Critical (CVSS 9.8): An issue was discovered in Craft CMS before 3.6.7. In some circumstances, a potential Remote Code Execution…
All CVEs affecting Craftcms Craft Cms →
Other CWE-472 vulnerabilities
- CVE-2025-43933 — Critical (CVSS 9.8): fblog through 983bede allows account takeover via the password reset feature because SERVER_NAME is not configured and…
- CVE-2025-43930 — Critical (CVSS 9.8): Hashview 0.8.1 allows account takeover via the password reset feature because SERVER_NAME is not configured and thus a…
- CVE-2021-1295 — Critical (CVSS 9.8): Multiple vulnerabilities in the web-based management interface of Cisco Small Business RV160, RV160W, RV260, RV260P,…
- CVE-2021-1294 — Critical (CVSS 9.8): Multiple vulnerabilities in the web-based management interface of Cisco Small Business RV160, RV160W, RV260, RV260P,…
- CVE-2021-1293 — Critical (CVSS 9.8): Multiple vulnerabilities in the web-based management interface of Cisco Small Business RV160, RV160W, RV260, RV260P,…
- CVE-2021-1292 — Critical (CVSS 9.8): Multiple vulnerabilities in the web-based management interface of Cisco Small Business RV160, RV160W, RV260, RV260P,…