InfraGuard

CVE-2025-35939

Craft CMS stores user-provided content in session files

6.9 CVSS 4.0 已遭在野利用EPSS 1.4%

问题所在

Craft CMS 会将未经清理的用户提供返回 URL 参数直接存储在服务器上的会话文件中。未经身份验证的攻击者可以将任意内容(例如 PHP 代码)注入到已知的本地文件位置,这可能会利用独立的漏洞被执行。

影响范围

Craft CMS 5.7.5 之前和 4.15.3 之前的版本受影响。

应对措施

请将 Craft CMS 升级至 5.7.5 或 4.15.3 或更高版本以解决此问题。

原始描述

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.

已知被利用(CISA KEV)

加入 KEV 日期
2025-06-02
修复期限(美国联邦机构)
2025-06-23
用于勒索软件
Unknown
要求采取的措施
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

受影响的软件

详情

发布日期
2025-05-08
最后修改
2026-02-27
CVSS 向量
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
CWE
CWE-472
EPSS(30 天内被利用概率)
1.37% (百分位 72)

参考资料

在您自己的服务器上追踪这些版本

InfraGuard 从每台服务器收集已安装软件的版本,并标出存在已知漏洞的版本。自托管部署——数据不会离开您的网络。

每周已被利用漏洞摘要

每周一次,推送与自托管服务器相关的 KEV 新增条目。不发送其他邮件。

本产品使用 NVD API 的数据,但未获得 NVD 的认可或认证。CVE® 是 The MITRE Corporation 的注册商标;CVE 记录依据 CVE Program 使用条款使用。