Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-72781— Craft CMS 5.0.0-RC1 before 5.10.7 Remote Code Execution via Twig Sandbox Escape

Quick assessment

Affected
craftcms cms
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Craft CMS是Craft CMS公司的一套内容管理系统(CMS)。 Craft CMS 5.0.0-RC1版本至5.10.7之前版本和4.0.0-RC1版本至4.18.3之前版本存在处理逻辑错误漏洞,该漏洞源于Twig沙箱机制中Craft将ElementInterface标记为安全且沙箱白名单扩展至整个类层次结构,即使启用Twig沙箱,经过身份验证且具有控制面板访问权限的攻击者也可渲染恶意Twig模板,滥用yii\base\Component任意函数调用小工具执行任意代码。

CVSS 8.8 · High EPSS 0.54% · P43

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 4

VendorProduct Version RangeStatus
craftcms cms 5.0.0-RC1< 5.10.7 affected
5.10.7 unaffected
4.0.0-RC1< 4.18.3 affected
4.18.3 unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-72781

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Craft CMS 5.0.0-RC1 before 5.10.7 Remote Code Execution via Twig Sandbox Escape
Source: CVE Program / CVE List V5
Vulnerability Description
Craft CMS versions >= 5.0.0-RC1 before 5.10.7 and >= 4.0.0-RC1 before 4.18.3 contain a remote code execution vulnerability in the Twig sandbox mechanism. Because Craft marks the ElementInterface as safe (via the AllowedInSandbox attribute) and the sandbox allowlisting extends to the entire class hierarchy (craft\base\Component up to yii\base\Component), an authenticated attacker with permission to access the control panel can render a malicious Twig template that abuses the yii\base\Component arbitrary function-call gadget to execute arbitrary code, even when the Twig sandbox is enabled via enableTwigSandbox().
Source: 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
Source: CVE Program / CVE List V5
Vulnerability Type
保护机制失效
Source: CVE Program / CVE List V5
Vulnerability Title
Craft CMS 处理逻辑错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Craft CMS是Craft CMS公司的一套内容管理系统(CMS)。 Craft CMS 5.0.0-RC1版本至5.10.7之前版本和4.0.0-RC1版本至4.18.3之前版本存在处理逻辑错误漏洞,该漏洞源于Twig沙箱机制中Craft将ElementInterface标记为安全且沙箱白名单扩展至整个类层次结构,即使启用Twig沙箱,经过身份验证且具有控制面板访问权限的攻击者也可渲染恶意Twig模板,滥用yii\base\Component任意函数调用小工具执行任意代码。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
craftcms cms 5.0.0-RC1 ~ 5.10.7 -
craftcms cms 4.0.0-RC1 ~ 4.18.3 -

II. Public POCs for CVE-2026-72781

# POC Description Source Link Shenlong Link
AI-Generated POC Verified env Premium
Qwen3.6-35B-A3B · 11784 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-72781

登录查看更多情报信息。

Vendor Advisories for CVE-2026-72781 (2)

Same Patch Batch · craftcms · 2026-08-11 · 8 CVEs total

CVE-2026-72778 8.8 HIGH Craft CMS 5.0.0-RC1 before 5.10.6 Authenticated RCE via condition.config
CVE-2026-72780 6.5 MEDIUM Craft CMS before 5.10.5 WebAuthn Assertion Replay via login-with-passkey
CVE-2026-72782 6.5 MEDIUM Craft CMS 5.0.0-RC1 before 5.10.6 Environment Variable Leak
CVE-2026-72783 6.2 MEDIUM Craft CMS 5.0.0-RC1 before 5.10.6 Path Traversal via ensurePathIsContained
CVE-2026-72784 5.4 MEDIUM Craft CMS 5.0.0-RC1 before 5.10.6 SSRF via GraphQL asset mutation
CVE-2026-72779 4.5 MEDIUM Craft CMS 5.0.0-RC1 before 5.10.6 Arbitrary File Read via SplFileObject
CVE-2026-72785 4.3 MEDIUM Craft CMS before 5.10.6 Authorization Bypass via structures/move-element

IV. Related Vulnerabilities

V. Comments for CVE-2026-72781

No comments yet


Leave a comment