CVE-2026-72781
Last modified
CVE-2026-72781 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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().. EPSS estimates a 0.54% chance of exploitation in the next 30 days.
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().
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| craftcms | cms | >= 5.0.0-RC1, < 5.10.7 |
| craftcms | cms | >= 4.0.0-RC1, < 4.18.3 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-72781?
How severe is CVE-2026-72781?
How do I fix CVE-2026-72781?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-72775n8n before 1.123.67, 2.31.5, and 2.32.1 contains a SQL injec…8.8
- CVE-2026-72776AgenticSeek (commit fc242c7) contains an unauthenticated rem…9.8
- CVE-2026-72777Next AI Draw.io through 0.4.16 contains a server-side reques…8.6
- CVE-2026-72778Craft CMS versions from 4.0.0-RC1 before 4.18.2 and from 5.0…8.8
- CVE-2026-72779Craft CMS 5.0.0-RC1 before 5.10.6 and 4.0.0-RC1 before 4.18.…4.5
- CVE-2026-72780Craft CMS before 5.10.5 fails to persist updated credential …6.5
- CVE-2026-72782Craft CMS versions >= 5.0.0-RC1 before 5.10.6 and >= 4.0.0-R…6.5
- CVE-2026-72783Craft CMS versions >= 5.0.0-RC1 before 5.10.6 and >= 4.0.0-R…6.2
- CVE-2026-72784Craft CMS versions >= 5.0.0-RC1 before 5.10.6 and >= 4.0.0-R…5.4
- CVE-2026-72785Craft CMS 5.0.0-RC1 through 5.10.5 contains an incorrect aut…4.3
- CVE-2026-72786Craft CMS versions before 5.10.8 contain an authentication b…6.5
- CVE-2026-72787Craft CMS versions before 5.10.8 contain a stored cross-site…6.4
Are you affected by CVE-2026-72781?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
