Skip to main content
EPSS 0.8%top 46%

CVE-2026-72781: Protection Mechanism Failure in craftcms cms

0
High
Published: 08/11/2026 (08/11/2026, 12:17:16 UTC)
Source: CVE Database V5
Vendor/Project: craftcms
Product: cms

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().

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

craftcms

cms

Affected versions
>=5.0.0-RC1 <5.10.7

craftcms

cms

Affected versions
>=4.0.0-RC1 <4.18.3
GitHub Actionsmore threats →ai
craftcms/cms
pkg:github/craftcms/cms
Affected versions
=5.0.0-RC1<5.10.7=4.0.0-RC1<4.18.3

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/11/2026, 13:03:34 UTC

Technical Analysis

Craft CMS versions >=5.0.0-RC1 before 5.10.7 and >=4.0.0-RC1 before 4.18.3 have a remote code execution vulnerability in the Twig sandbox. The vulnerability stems from the ElementInterface being marked as safe via the AllowedInSandbox attribute, which extends allowlisting to the entire class hierarchy from craft\base\Component up to yii\base\Component. An authenticated attacker with control panel permissions can exploit this by rendering a malicious Twig template that abuses the yii\base\Component arbitrary function-call gadget to execute arbitrary code, bypassing the protections of the Twig sandbox enabled by enableTwigSandbox().

Potential Impact

An authenticated attacker with permission to access the control panel can execute arbitrary code remotely on affected Craft CMS installations. This could lead to full system compromise depending on the privileges of the application user. The vulnerability bypasses the Twig sandbox protections, increasing the risk of exploitation in environments relying on this sandboxing mechanism.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict control panel access to trusted users only and consider disabling or limiting the use of Twig sandbox features if feasible. Monitor vendor channels for updates and apply patches promptly once released.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-08-10T15:09:12.955Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a7b18a3bf8831d539b86170

Added to database: 08/11/2026, 12:42:11 UTC

Last enriched: 08/11/2026, 13:03:34 UTC

Last updated: 09/25/2026, 13:47:48 UTC

Views: 59

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses