Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. craftcms/cms
  4. ›
  5. CVE-2025-35939

CVE-2025-35939: Craft CMS stores arbitrary content provided by unauthenticated users in session files

May 8, 2025

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.

References

  • github.com/advisories/GHSA-7vrx-9684-xrf2
  • github.com/craftcms/cms
  • github.com/craftcms/cms/commit/e4c7bac8f31010aee048409f9ef6f744a83146b2
  • github.com/craftcms/cms/pull/17220
  • github.com/craftcms/cms/releases/tag/4.15.3
  • github.com/craftcms/cms/releases/tag/5.7.5
  • nvd.nist.gov/vuln/detail/CVE-2025-35939

Code Behaviors & Features

Detect and mitigate CVE-2025-35939 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.15.3, all versions starting from 5.0.0-alpha.1 before 5.7.5

Fixed versions

  • 5.7.5
  • 4.15.3

Solution

Upgrade to versions 4.15.3, 5.7.5 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-472: External Control of Assumed-Immutable Web Parameter

Source file

packagist/craftcms/cms/CVE-2025-35939.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:02 +0000.