Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Craft control panel
-
DeliverySubmit crafted getOwners() criteria via object template
-
ExploitAttach AttributeTypecastBehavior and wildcard event handler
-
ExecutionTrigger query invoking User::updateAll(admin=true)
-
ImpactAll accounts promoted to administrator
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V4 - API and Web Service Object attribute protection
|
| Exploitation Conditions | Requires an authenticated Craft CMS control-panel account (PR:L) with access to the relational-condition object-template feature; the attacker must supply a nested reference element plus a sandboxed Twig template that calls object.getOwners() with crafted criteria. The flaw exists because getOwners() applies the caller's criteria to an ElementQuery via Craft::configure() without invoking Component::cleanseConfig() or ElementHelper::cleanseQueryCriteria(), permitting Yii 'as'/'on' keys to attach a behavior and wildcard event handler. Affected versions are Craft CMS >= 5.8.17 and < 5.11.2. Limiting factors: valid control-panel credentials are mandatory (no anonymous exploitation), though no end-user interaction (UI:N) and no non-default configuration beyond standard control-panel/object-template availability are needed. |
| Impact | This is a genuine near-term priority, not an inflated high-CVSS artifact. The vendor-scored CVSS 4.0 of 8.7 (AV:N/AC:L/AT:N/PR:L/UI:N with VC:H/VI:H/VA:H) is consistent with the described mechanism: a network-reachable control-panel feature, low complexity, and full confidentiality/integrity/availability impact through complete administrator takeover. The one genuine barrier is PR:L - the attacker must already hold an authenticated control-panel account, which narrows the population from 'any internet user' to 'any user granted back-end access' (editors, contributors, etc.), a meaningful mitigation against anonymous mass exploitation but not against insider/low-trust-tenant abuse or a compromised low-privilege credential. The vuln.today decision label is 'this_week' and the finding originates from VulnCheck, a credible source. No EPSS score and no CISA KEV entry are present in the input, so there is no confirmation of active exploitation or a quantified exploitation probability - the urgency rests on the decision label, the detailed mechanism, and the existence of a demonstrated proof rather than on observed in-the-wild activity. The GHSA advisory documents a working proof-of-concept mechanism (including a production-safe demonstration and the identified administrator-escalation sink), so this should be treated as readily exploitable by any actor who obtains a control-panel foothold. |
| Exploit ScenarioDerived | An attacker holding any authenticated Craft control-panel account (even a low-privilege editor) uses the relational-condition object-template feature to supply a sandboxed Twig template that calls object.getOwners() with crafted criteria. Because getOwners() applies the caller's array to an ElementQuery without cleansing, the attacker attaches a Yii typecast behavior and a wildcard event handler that invokes craft\records\User::updateAll(['admin' => true]), promoting every account - including their own - to administrator. The GHSA advisory describes a demonstrated production-safe proof of this primitive (using FileHelper::createDirectory() as a benign callable), so the technique is documented end to end. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 06, 2026
Privilege escalation in Craft CMS affects versions 5.8.17 through 5.11.1, where an authenticated control-panel user with access to the relational-condition object-template feature can bypass the Twig sandbox and invoke attacker-selected static PHP callables, most directly craft\records\User::updateAll(['admin' => true]), which promotes every row in the users table - including the attacker's own account - to administrator. Exploitation requires a valid control-panel account (CVSS PR:L) but no user interaction and no non-default configuration beyond standard control-panel and object-template availability. The issue is assessed as a near-term priority (decision label this_week); no public exploit code and no confirmed active exploitation were identified at time of analysis.
RemediationAI
Vendor-released patch: Craft CMS 5.11.2 - upgrade any installation at 5.8.17 or later and below 5.11.2 to 5.11.2, per the advisory at https://github.com/craftcms/cms/security/advisories/GHSA-r56r-f696-c8w9. The available sources document no configuration-level workaround that removes the exposure while leaving the relational-condition object-template feature enabled; because the flaw is reachable only by an authenticated control-panel user with access to that feature, keeping such accounts limited to trusted operators reduces exposure until the upgrade is applied. After upgrading, review the users table for unexpected administrative flags, since successful exploitation promotes every account to administrator.
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 root cause is CWE-915, improperly controlled modification of dynamically-determined object attributes - a mass-assignment class flaw. Craft exposes NestedElementInterface::getOwners(array $criteria) to sandboxed Twig via the #[AllowedInSandbox] attribute. That implementation passes the caller-supplied array straight into an ElementQuery through Craft::configure() and then executes the query, applying neither Component::cleanseConfig() nor ElementHelper::cleanseQueryCriteria() - the two cleansing steps Craft's own controllers use on their direct query paths. Because Yii's configure() treats the special keys 'as <name>' and 'on <event>' as behavior attachments and event handler registrations, a crafted criteria array can attach a yii\behaviors\AttributeTypecastBehavior to the owner query and register a wildcard event handler; when ElementQuery::all() fires its query event, the attacker-selected typecast callback is invoked. The advisory's production-safe proof used craft\helpers\FileHelper::createDirectory() to create an attacker-chosen directory anywhere writable by the PHP worker, confirming arbitrary selection and invocation of bundled callables; the escalation sink is craft\records\User::updateAll(['admin' => true]), inherited from Yii, where an omitted condition updates every row in {{%users}}. The affected package is composer/craftcms/cms (CPE cpe:2.3:a:craftcms:cms), reflecting a PHP/Yii-based CMS architecture.
Know when 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
Network-reachable control-panel feature (AV:N, AC:L) requires an authenticated low-privilege account (PR:L) and no user interaction; arbitrary admin takeover yields full C:H/I:H/A:H with no scope change.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Craft CMS from 5.8.17 before 5.11.2 contains a privilege escalation vulnerability because getOwners() applies caller criteria without cleansing the query configuration. Authenticated control panel users can invoke attacker-selected static PHP callables via crafted criteria to promote every account to administrator.
Technical POC Analysis
Evidence base: GHSA-r56r-f696-c8w9 advisory only.
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 versions 5.8.17 through 5.11.1 contain a high-severity privilege escalation flaw allowing authenticated control-panel users to gain full administrative access, potentially compromising the entire site and its data. Leadership should prioritize immediate mitigation due to the high impact on confidentiality, integrity, and availability, and the potential for widespread unauthorized access if exploited.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict control-panel access to trusted users, enforce least privilege, enable multi-factor authentication, monitor logs for privilege escalation attempts, and disable the relational-condition object-template feature if feasible until a patch is available.
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
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
Cayin CMS suffers from an authenticated OS semi-blind command injection vulnerability using default credentials. Rated c
Multiple integer underflows in the icmLut_allocate function in International Color Consortium (ICC) Format library (iccl
phpKF CMS 3.00 Beta allows unauthenticated PHP file upload by disguising it as a PNG, then renaming it for execution. Po
Deserialization of Untrusted Data in the Sitecore.Security.AntiCSRF (aka anti CSRF) module in Sitecore CMS 7.0 to 7.2 an
Unauthenticated SQL injection in Craft CMS 4.0.0 before 4.18.9 and 5.0.0 before 5.11.2 allows remote attackers to read a
Deserialization of Untrusted Data in the anti CSRF module in Sitecore through 9.1 allows an authenticated attacker to ex
Unauthenticated file disclosure in LavaLite CMS through 10.1.2 allows remote attackers to download private stored files
Authenticated remote code execution in Craft CMS versions 5.5.0 through 5.9.13 allows admin users to execute arbitrary P
SQL injection vulnerability in hava_post.php in Havalite CMS 1.1.0 and earlier allows remote attackers to execute arbitr
Unrestricted file upload vulnerability in hava_upload.php in Havalite CMS 1.1.0 and earlier allows remote attackers to e
Cross-site request forgery (CSRF) vulnerability in Ilch CMS allows remote attackers to hijack the authentication of admi
Multiple cross-site scripting (XSS) vulnerabilities in Havalite 1.0.4 and earlier allow remote attackers to inject arbit
EUVD-2026-118290
GHSA-2rqf-g355-8vxq
NVD
CVE.org
EPSS
Exploit-DB