目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-115938— Twig 低权限沙箱逃逸导致远程代码执行漏洞

一分钟漏洞结论

影响对象
craftcms cms
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

Craft CMS 允许任何已登录的控制台用户提交一个元素搜索条件,该条件中的元素选择器会被当作沙箱化的 Twig 对象模板进行求值。Craft 所允许的列过滤器将属性查找委托给 Yii 的 ArrayHelper,而这一过程发生在 Twig 的 SecurityPolicy 沙箱之外。因此,通过反复执行单段属性查找,攻击者可以绕过沙箱对空属性/方法的白名单限制。 受影响的条件值最终会被强制转换为整数。但这并不能保护密钥安全:模板可以在猜测的密钥字符正确时返回作者 ID 1,而在其他情况下返回一个不可能的 ID。相

CVSS 8.8 · High
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-115938 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
Low privilege condition filter escapes Twig sandbox, recovers "securityKey" and reaches RCE
来源: CVE Program / CVE List V5
Vulnerability Description
Craft CMS allows any authenticated control panel user to submit an element-search condition whose element selector is evaluated as a sandboxed Twig object template. Craft’s allowed column filter delegates property lookup to Yii ArrayHelper, outside Twig’s SecurityPolicy. Repeated single-segment lookups therefore bypass the sandbox’s empty property/method allowlists. The vulnerable condition value is ultimately cast to an integer. That does not protect the secret: the template can return author ID 1 when a guessed key character is correct and an impossible ID otherwise. The JSON endpoint returns entries for the first case and an empty array for the second, forming a stable remote character oracle. After recovering GeneralConfig::securityKey, the same user can compute Craft’s generic HMAC wire format offline. Signed parameters such as redirect are then accepted and passed to unsandboxed View::renderObjectTemplate(), where Twig’s string-callable form can invoke native PHP callables. The regression proof uses the harmless substr() callback and observes abcdef becoming cdef; it does not execute an OS command.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
来源: CVE Program / CVE List V5
Vulnerability Type
CWE-1336
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
craftcms cms 5.0.0 ~ 5.11.2 -

二、漏洞 CVE-2026-115938 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-115938 的情报信息

请登录查看更多情报信息。

CVE-2026-115938 厂商安全公告 (1)

CVE-2026-115938 安全博客文章 (1)

CVE-2026-115938 厂商页面 (2)

同批安全公告 · craftcms · 2026-10-23 · 共 3 条

CVE-2026-115935 8.8 HIGH 控制面板 API 响应模拟绕过安全密钥导致服务器 RCE
CVE-2026-115937 7.5 HIGH 支付系统未认证支付重用漏洞

IV. Related Vulnerabilities

V. Comments for CVE-2026-115938

暂无评论


发表评论