问题所在
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.
受影响的软件
- CraftCMS * 仓库或软件包匹配
详情
- 发布日期
- 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)
参考资料
- cve.org/CVE-2025-35939
- nvd.nist.gov/vuln/detail/CVE-2025-35939
- github.com/craftcms/cms/pull/17220
- github.com/craftcms/cms/releases/tag/4.15.3
- github.com/craftcms/cms/releases/tag/5.7.5
- www.cve.org/CVERecord?id=CVE-2025-35939
- raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2025/va-25-147-01.json
本产品使用 NVD API 的数据,但未获得 NVD 的认可或认证。CVE® 是 The MITRE Corporation 的注册商标;CVE 记录依据 CVE Program 使用条款使用。