Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Craft Control Panel (PR:L)
-
DeliverySubmit crafted Twig asset transform with 'as'/'on' key
-
ExploitPass unfiltered input to Craft::createObject, escaping Twig sandbox
-
ExecutionAttach malicious behavior/event handler
-
ImpactExecute arbitrary code as web user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated Craft CMS Control Panel account (PR:L) with the ability to supply or render Twig asset transforms - specifically input reaching Asset::getMimeType where attacker-controlled 'as' or 'on' keys flow unfiltered into Craft::createObject. Exploitation is limited to installations running vulnerable versions 5.0.0 through 5.10.x; version 5.11.0 and later are fixed. The primary limiting factor is the authentication requirement: an attacker must first obtain a Control Panel login, so the realistic exposure is concentrated in environments that grant Control Panel access to low-trust or numerous users, or where account credentials can be phished or reused. No special non-default server configuration is implied by the description beyond running an affected Craft 5 version. |
| Impact | This is a credible priority for any organization running Craft CMS, though not a drop-everything emergency absent evidence of active exploitation. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) scores 8.7 (High) and is internally consistent with the description: network-reachable, low complexity, no user interaction, and low privileges (PR:L) corresponding to an authenticated Control Panel user. The VC:H/VI:H/VA:H impact aligns with full remote code execution as the web user (CWE-94, code injection). The key limiting signal is PR:L - exploitation requires a valid, if low-privileged, Control Panel account, which meaningfully narrows the attacker population versus a pre-auth RCE and makes this most dangerous in multi-tenant, agency, or large-editorial deployments where many low-trust Control Panel accounts exist. No EPSS score was provided in the input, so exploitation probability cannot be quantified here. This is NOT in CISA KEV and no POC was supplied, so there is no public exploit identified at time of analysis; the threat is a well-documented sandbox-escape primitive reported by a reputable source (VulnCheck) rather than confirmed in-the-wild activity. Net: patch promptly, prioritizing instances with untrusted or numerous Control Panel users, but it does not require the same urgency as a KEV-listed or unauthenticated flaw. |
| Exploit ScenarioDerived | An attacker with a low-privileged Craft CMS Control Panel account (or one obtained via phishing/credential reuse) crafts a Twig asset transform that abuses Asset::getMimeType, injecting an 'as' or 'on' key that is passed unfiltered to Craft::createObject. This escapes the Twig sandbox to attach a malicious Yii behavior or event handler, resulting in arbitrary PHP code execution as the web server user. No public exploit was identified at time of analysis, so weaponization would require the attacker to reconstruct the technique from the advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 19, 2026
Remote code execution in Craft CMS 5.0.0 through 5.10.x lets authenticated Control Panel users escape the Twig sandbox by supplying attacker-controlled 'as' or 'on' keys to Asset::getMimeType transforms, which are passed unfiltered into Craft::createObject and can attach malicious behaviors or event handlers that execute as the PHP web user. The CVSS 4.0 score is 8.7 (and the assessed CVSS 3.1 vector is AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), reflecting a high-integrity and high-availability impact once a Control Panel session is obtained. No public exploit code has been identified at the time of analysis and there is no CISA KEV confirmation, so the practical risk is concentrated in environments where Control Panel access is broadly granted, weakly protected, or susceptible to credential phishing or reuse; the fixed release is 5.11.0.
RemediationAI
Vendor-released patch: upgrade Craft CMS to 5.11.0 or later, following the vendor advisory at https://github.com/craftcms/cms/security/advisories/GHSA-qm9x-rmcj-h2rc and the VulnCheck advisory at https://www.vulncheck.com/advisories/craft-cms-5.0.0-before-5.11.0-rce-via-asset-getmimetype-transform-injection. Because exploitation requires an authenticated Control Panel account, reduce exposure until patching is complete by restricting Control Panel access to trusted administrators and editors, removing dormant or low-trust accounts, and enforcing strong authentication or MFA on remaining accounts; the trade-off is reduced editorial flexibility and additional account-management overhead. Review web and Craft logs for transform requests or asset operations containing unexpected 'as' or 'on' parameters, which may indicate attempted sandbox escape, and monitor for unexpected PHP behavior under the web user. There is no vendor-released patch identified for versions prior to 5.11.0, so in-place upgrades are required rather than configuration-only fixes.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a code injection (CWE-94) in Craft CMS's Twig rendering and asset transform pipeline. Craft CMS is a PHP-based content management system built on the Yii framework; Craft::createObject is the framework's object factory, which accepts a configuration array that can include special keys such as 'as' for attaching Yii behaviors and 'on' for registering event handlers. In affected versions, the Asset::getMimeType path processes transform parameters without filtering these reserved configuration keys, so a Control Panel user who can influence the transform configuration can cause arbitrary class methods and event callbacks to be registered on the created object. Because the resulting behaviors and handlers are instantiated and invoked inside the PHP process running as the web user, this sandbox escape crosses from limited Twig template expression into server-side code execution. The CPE entry cpe:2.3:a:craftcms:cms:*:*:*:*:*:*:*:* identifies Craft CMS as the affected product family, and the version range is bounded by the vendor advisory GHSA-qm9x-rmcj-h2rc for Craft CMS 5.0.0 before 5.11.0.
Know when Craft Cms gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Authenticated Control Panel user drives PR:L; network-reachable Twig rendering with no interaction gives AV:N/AC:L/UI:N; code execution as web user yields C:H/I:H/A:H with scope unchanged.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Craft CMS from 5.0.0 before 5.11.0 contains a remote code execution vulnerability that allows authenticated Control Panel users to escape the Twig sandbox via Asset::getMimeType transforms. Attackers can supply 'as' or 'on' keys passed unfiltered to Craft::createObject, attaching malicious behaviors or event handlers that execute code as the web user.
Technical POC Analysis
CWE-94 (Improper Control of Generation of Code / Code Injection).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Craft CMS releases 5.0.0 through 5.10.x contain a high-severity remote code execution flaw that allows any authenticated Control Panel user to break out of the Twig sandbox and run code as the PHP web user, putting the integrity and availability of hosted content and the underlying web tier at risk. There is no public exploit identified at time of analysis, so the realistic exposure is concentrated in organizations that grant Control Panel access broadly, rely on single-factor logins, or are susceptible to credential phishing and password reuse. Leadership should care because a single compromised or over-privileged content-editor account could be leveraged to alter or take down production sites, and the vendor fix (5.11.0) requires a planned upgrade cycle rather than an automatic update.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Craft CMS versions 3.x through 5.x contain a critical remote code execution vulnerability (CVSS 10.0) that allows unauth
Craft CMS stores arbitrary content provided by unauthenticated users in session files. Rated medium severity (CVSS 6.9),
Craft CMS is a platform for creating digital experiences. Rated critical severity (CVSS 9.8), this vulnerability is remo
Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond. Rated critical sev
Craft CMS up to v3.7.31 was discovered to contain a SQL injection vulnerability via the GraphQL API endpoint. Rated crit
The SEOmatic component before 3.3.0 for Craft CMS allows Server-Side Template Injection that leads to RCE via malformed
RCE in Craft CMS before 4.17.0-beta.1/5.9.0-beta.1 via template injection for authenticated admins. PoC and patch availa
Authenticated remote code execution in Craft CMS versions 5.0.0-RC1 through 5.8.20 and 4.0.0-RC1 through 4.16.16 lets an
SQL injection in Craft CMS 4.0.0-RC1 through 4.16.17 and 5.0.0-RC1 through 5.8.21 allows authenticated Control Panel use
An issue found in CraftCMS v.3.8.1 allows a remote attacker to execute arbitrary code via a crafted script to the Sectio
Craft CMS through 3.7.36 allows a remote unauthenticated attacker, who knows at least one valid username, to reset the a
Craft CMS 2.6.3000 allows remote attackers to execute arbitrary PHP code by using the "Assets->Upload files" screen and
EUVD-2026-104578
GHSA-rvqf-xwq6-2q7c
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB