Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to Craft control panel with any editor account
-
DeliveryRetrieve valid CSRF token from panel session
-
ExploitCraft element-search request with Yii behavior keys hidden in condition.config JSON string
-
InstallSubmit request; cleanseConfig() passes JSON string unchecked
-
C2Conditions::createCondition() decodes JSON and merges keys into FieldLayout config
-
ExecuteYii interprets 'as ...' or 'on ...' keys as behavior/event handlers and invokes PHP callable
-
ImpactOS commands execute as PHP/web user; retrieve output via side-channel file fetch
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 | The attacker must hold an active, authenticated Craft CMS control panel session with any role that has access to the element-search UI - this includes low-privilege roles such as author or editor, not only administrators. A valid CSRF token must accompany the request, which is trivially obtained by any authenticated session. No special Craft configuration, non-default plugin, or elevated permission beyond basic control panel login is required. Exploitation is limited by the authentication prerequisite: unauthenticated remote attackers cannot exploit this flaw. Additionally, the execution is semi-blind - command output is not returned in the triggering response but must be retrieved via a side-channel (server-side file write followed by a separate fetch), adding a minor operational step without meaningfully raising the bar for a prepared attacker. |
| Impact | The CVSS 4.0 score of 8.7 with vector AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H accurately reflects a high-severity but authenticated attack surface: the low-privilege (PR:L) requirement is the primary limiting factor, and there is no attack complexity or precondition penalty (AC:L/AT:N). Exploitation requires only a valid control panel account and CSRF token - conditions met by any editor, author, or low-trust internal user, not just administrators. The GHSA advisory confirms lab-verified RCE rather than theoretical impact, elevating confidence in real-world exploitability. EPSS data is not available in the provided intelligence, but the combination of a clear, well-documented exploit mechanism and a broad authenticated user base suggests meaningful probability of post-patch exploitation once a public PoC is released. No CISA KEV listing is present, and no public exploit code has been identified at time of analysis, meaning this is not yet confirmed as broadly exploited. Even a mid-sized municipal IT team in kalisz running an unpatched Craft instance with multiple editor accounts should treat this as urgent, given that the attack requires no special privileges beyond a login. The CVSS-implied technical impact is total: confidentiality, integrity, and availability of the Craft host are fully compromised if exploited. |
| Exploit ScenarioDerived | An attacker with a low-privilege Craft control panel account - such as an editor or author - authenticates, obtains a valid CSRF token from the panel interface, and submits a crafted element-search request in which the condition.config field contains a JSON-encoded Yii behavior or event handler pointing to a PHP callable executing an OS command. The control panel endpoint returns a normal JSON response (semi-blind execution), but the attacker retrieves command output via a server-side file-write side effect in a subsequent request, confirming full OS-level code execution as the web user. No public exploit code has been identified, but the GHSA advisory provides sufficient mechanistic detail that skilled attackers could independently develop one. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 11, 2026
Authenticated remote code execution in Craft CMS control panels allows any user with a valid panel session to execute operating system commands as the PHP/web user by exploiting a config-cleanse bypass in element-search condition handling. Affected versions span the 4.x branch from 4.0.0-RC1 through 4.18.1, and the 5.x branch from 5.0.0-RC1 through 5.10.5. The GHSA advisory confirms lab-verified exploitation; no public exploit code has been identified at time of analysis, and this CVE does not appear in the CISA KEV catalog.
RemediationAI
The primary fix is to upgrade Craft CMS to version 4.18.2 (for 4.x deployments) or 5.10.6 (for 5.x deployments); these are the vendor-confirmed fixed versions per GHSA-265m-7826-wjqm. The underlying patches are available at commit 353b5d676c88a854c9f6409ad83b837ca0c0e8da and 789789dc9e2a4e2f2562f51aaf879fb7757d8340 in the craftcms/cms repository. If immediate upgrade is not feasible, the most effective compensating control is to restrict control panel access to trusted IP ranges via network-level firewall rules or web server configuration (e.g., allow-listing office/VPN egress IPs for the /admin path), which eliminates the network attack vector while preserving site functionality; this introduces the operational trade-off of blocking legitimate remote editors. Disabling non-essential control panel user accounts and enforcing minimum-privilege account policies reduces the pool of potential attackers in the interim. There is no known configuration toggle within Craft itself that disables the vulnerable condition-handling code path without patching.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, 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 content management system distributed via Composer (craftcms/cms). The vulnerability exploits CWE-915 - Improperly Controlled Modification of Dynamically-Determined Object Attributes - manifesting specifically through Yii2 framework's dynamic configuration system. Yii2 interprets special array keys prefixed with 'as ' (behaviors) and 'on ' (event handlers) during object creation via Yii::createObject(). Craft's Component::cleanseConfig() correctly strips these keys from the outer request-controlled condition array, but the condition.config sub-key is a JSON-encoded string at the time of cleansing. Because cleanseConfig() sees only an opaque string, not a decoded array, malicious Yii keys embedded within that JSON string pass through unfiltered. When Conditions::createCondition() later decodes the JSON and merges the result into configuration that is passed to FieldLayout object creation, the 'as ...' and 'on ...' keys are now top-level array entries visible to Yii's object factory, which interprets and invokes them as behavior or event configuration - enabling arbitrary PHP and OS command execution. The CPE cpe:2.3:a:craftcms:cms covers both affected major version lines.
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-accessible control panel (AV:N), no complexity barriers once authenticated (AC:L), requires only a low-privilege account (PR:L), no scope change as impact is confined to the Craft host.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Craft CMS versions from 4.0.0-RC1 before 4.18.2 and from 5.0.0-RC1 before 5.10.6 contain an authenticated remote code execution vulnerability in the control panel element-search condition handling. Craft cleanses the outer request-controlled condition array via Component::cleanseConfig(), but Conditions::createCondition() later decodes and merges the JSON string in condition.config without re-running cleanseConfig() on the decoded configuration. Because condition.config is a JSON string during the first cleanse, Yii special config keys such as 'as ...' and 'on ...' can be hidden inside it and, after JSON decoding, are interpreted by Yii as behavior/event configuration during FieldLayout object creation. An attacker with an authenticated control panel session (and a valid CSRF token) can exploit this to execute operating system commands as the PHP/web user.
Articles & Coverage 1
Executive ViewAI
Craft CMS versions 4.0.0-RC1 through 4.18.1 and 5.0.0-RC1 through 5.10.5 contain an authenticated remote code execution vulnerability in control panel element-search handling. Any user with valid panel credentials can execute arbitrary operating system commands, making this a critical risk if credentials are compromised or if insider threats exist. Organizations running affected versions face potential for complete system compromise through a low-barrier attack requiring only panel access.
No vendor-released patch identified at time of analysis. Interim mitigations include: restrict control panel access to approved IP addresses or VPN-only connectivity; implement network segmentation to isolate web-facing infrastructure; deploy web application firewall (WAF) rules to detect anomalous element-search requests; establish comprehensive audit logging of all control panel activities and review logs for suspicious patterns; disable or restrict administrative accounts not requiring immediate access. These controls reduce but do not eliminate risk to organizations with compromised credentials or insider threats.
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
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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-56102
GHSA-w36c-qxrq-v7fw
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB