Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Control Panel as CP user
-
DeliveryPass uncleansed criteria to getNext/getPrev/getOwners
-
ExploitInject Yii 'as'/'on' config keys to attach event handler
-
ExecutionElement query triggers malicious 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) on a version from 5.0.0 up to but not including 5.11.0; no end-user interaction is needed (UI:N). The specific trigger is passing uncleansed/attacker-controlled criteria into the getNext, getPrev, or getOwners element-query methods, allowing injection of Yii framework 'as' (behavior) or 'on' (event) configuration keys that attach a malicious event handler executed when the element query runs. The principal limiting factor is the Control Panel authentication requirement - exploitation is impossible for fully unauthenticated attackers, so real-world risk is driven by how broadly and to how low-trust a population CP accounts are granted; the Twig sandbox (normally a protective boundary for less-trusted template authors) is the control being escaped. |
| Impact | This is a genuinely serious but not drop-everything-now issue. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) with full high impact to confidentiality, integrity, and availability (VC:H/VI:H/VA:H) correctly reflects remote, low-complexity code execution that nonetheless requires authentication - PR:L means an attacker needs a valid Control Panel account, which is the single most important risk-limiting factor. The description confirms this: exploitation is limited to 'authenticated Control Panel users,' so this is a privilege-escalation/sandbox-escape primitive, not an unauthenticated internet-facing RCE. No EPSS score was provided in the input, so exploitation probability cannot be quantified. There is no CISA KEV listing and no public exploit was referenced, so the status is 'no public exploit identified at time of analysis.' The signals are internally consistent (CVSS network vector matches the HTTP-based Control Panel, PR:L matches the authenticated requirement), so there is no contradiction to flag - the chief caveat is simply that CP access is required, which in well-run deployments is restricted to trusted content editors and admins. Prioritize patching where untrusted or low-trust users hold CP accounts; deprioritize relative to unauthenticated RCEs where CP access is tightly held. |
| Exploit ScenarioDerived | An attacker who has obtained a low-privileged Craft CMS Control Panel account (e.g., a content author, or a compromised editor credential) crafts an element query that passes uncleansed criteria into getNext, getPrev, or getOwners, injecting Yii 'as'/'on' configuration keys to attach a malicious event handler. When the element query executes, the handler runs attacker-controlled code as the web server user, escaping the Twig sandbox. No public exploit code was referenced, but the described technique is concrete and reliably reproducible by a skilled attacker. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 19, 2026
Authenticated Control Panel users on Craft CMS 5.0.0 through 5.10.x can escape the Twig sandbox and achieve remote code execution by supplying uncleansed criteria to the getNext, getPrev, or getOwners element-query methods. The injected Yii 'as' or 'on' configuration keys attach a malicious behavior or event handler that executes as the web server user when the query runs. No public exploit code or CISA KEV entry was identified at time of analysis; the primary barrier is the requirement for a valid Control Panel account.
RemediationAI
Vendor-released patch: upgrade to Craft CMS 5.11.0 or later; the fix hardens the getNext, getPrev, and getOwners criteria handling so Yii 'as' and 'on' keys cannot be injected, and the vendor advisory GHSA-wr79-9v6x-5rfq should be consulted for the exact upgrade path. If immediate upgrade is not possible, restrict Control Panel access to a minimal set of trusted administrators, review and remove dormant or low-trust CP accounts, and audit template-editing permissions because any authenticated CP user who can influence element-query criteria is a potential trigger. These compensating controls trade content-team flexibility and administrative convenience for reduced attack surface, and they do not fully eliminate the flaw; monitoring for anomalous element-query activity or unexpected behavior/event configuration can provide detection while the upgrade is scheduled.
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
Craft CMS is a PHP-based CMS built on the Yii framework and uses Twig for templating, with a sandbox intended to let less-trusted template authors render content without arbitrary PHP execution. Element query methods such as getNext(), getPrev(), and getOwners() accept criteria arrays; in affected versions these methods do not adequately cleanse attacker-controlled keys before passing the criteria into Yii's object configuration machinery. Yii recognizes the special 'as' key for attaching behaviors and the 'on' key for attaching event handlers, so a crafted criteria array can register a handler that fires when the element query is executed, breaking out of the Twig sandbox. This is a code-injection flaw (CWE-94) rather than a memory-safety issue; the CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H) and the independent CVSS 3.1 assessment agree that exploitation is network-reachable, requires a low-privileged authenticated Control Panel account, needs no user interaction, and yields high confidentiality, integrity, and availability impact confined to the Craft CMS application scope.
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 CP user yields PR:L; HTTP-reachable Control Panel gives AV:N/AC:L; 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 by passing uncleansed criteria to getNext, getPrev, or getOwners. Attackers can inject Yii "as" or "on" config keys to attach malicious event handlers that execute when the element query runs, achieving code execution 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 5.0.0 through 5.10.x contains a high-severity code execution flaw that can compromise the web server hosting affected sites. Organizations running these versions should treat the issue as a priority because a successful attack could expose site data, customer information, and integrated services, leading to operational disruption and reputational harm.
No vendor-released patch identified at time of analysis; interim mitigations include restricting Control Panel access to trusted administrators, enforcing MFA, applying least privilege, monitoring logs for suspicious element-query behavior, and deploying WAF or virtual patching rules for Control Panel endpoints.
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-104579
GHSA-8vpq-j4mg-h24p
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB