SecurityContext

CVE-2025-35939: Craft CMS - Insecure Deserialization

  • Cve: CVE-2025-35939
  • Name: Craft CMS - Insecure Deserialization
  • 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.
  • Impact: Attackers can inject and execute arbitrary code on the server, leading to remote code execution or server compromise.
  • Remediation: Update to Craft CMS versions 5.7.5 or 4.15.3.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
  • Epss score: 0.01373
  • Epss percentile: 0.72681
  • Assignee: 9119a7d8-5eab-497f-8521-727c672e3725
  • Published at: 2025-05-07T23:15:54Z
  • Age in days: 565
  • Modified at: 2026-06-17T09:14:18Z
  • Patch available: yes
  • References total: 7
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-35939
  • Nvd status: analyzed
  • Checked, none or zero: nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements

Cwe

IdName
CWE-472External Control of Assumed-Immutable Web Parameter
NVD-CWE-Other—

Known exploited entries

ListAdded dateDue dateRansomware use
cisa2025-06-022025-06-23no
vulncheck2025-06-02—no

Hackerone

  • Reports: 2
  • Rank: 2205

References

UrlSourceTags
https://github.com/craftcms/cms/pull/17220nvdPatch
https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2025/va-25-147-01.jsonnvdThird Party Advisory
https://github.com/craftcms/cms/releases/tag/4.15.3nvdRelease Notes
https://github.com/craftcms/cms/releases/tag/5.7.5nvdRelease Notes
https://www.cve.org/CVERecord?id=CVE-2025-35939nvdVDB Entry
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-35939nvdUS Government Resource
https://www.loginsoft.com/reports/annually/vulnerability-intelligence-report-2025vulncheckVulncheck Reported Exploitation

Products

ProductAffectedPlatform boundSourcesUrl
craftcms:craft_cms>= 5.0.0, < 5.7.5; < 4.15.3nonvd/v1/products/craftcms/craft_cms

Projects

RepositoryLink kindsIndexedUrl
craftcms/cmscommit, package, pull, releasesyes/v1/repositories/craftcms/cms

Index

  • Repositories: 18
  • Repositories high signal: 15
  • Checked, none or zero: packages

Exploitation

  • Known exploited: yes
  • Known exploited since: 2025-06-02
  • Known exploited by: cisa, vulncheck
  • Vulncheck known exploited since: 2025-06-02
  • Remote: yes
  • Hackerone reports: 2
  • Exposed hosts: 34307
  • Checked, none or zero: exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: public exploit first date, nuclei template, initial access since