Description
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.
Published: 2026-08-11
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Craft CMS implements a control panel element‑search feature that accepts a JSON string in the condition.config field. When a request is made, the outer array is cleansed by Component::cleanseConfig, but the decoded JSON string is later merged without a second cleanse. Yii then interprets special config keys such as 'as …' and 'on …' as behavior or event attachments during FieldLayout creation. An authenticated attacker who can forge a valid CSRF token is able to inject malicious Yii configuration, cause the system to execute arbitrary operating system commands as the PHP/web user, and therefore obtain full control of the hosting environment. This flaw is identified as CWE‑915, a time‑of‑check-to-time‑of‑use vulnerability, and its impact is the highest, potentially compromising data integrity, confidentiality, and availability.

Affected Systems

The flaw affects Craft CMS released by CraftCMS. All versions starting with 4.0.0‑RC1 and up to but not including 4.18.2, and all versions starting with 5.0.0‑RC1 up to but not including 5.10.6, are vulnerable. Deployments of any of these releases are at risk until the organization applies the first available patch level. The affected product is Craft CMS, and the vendor is CraftCMS.

Risk and Exploitability

The CVSS score of 8.7 indicates severe risk. No EPSS score or KEV listing has been reported, implying that exploitation has not yet been observed in the wild but remains technically feasible. The vulnerability requires an authenticated control‑panel session and a valid CSRF token, so the attack surface is limited to privileged users or attackers who acquire such credentials through phishing or credential compromise. Once authenticated, the attacker can execute arbitrary commands as the web server’s user, fully compromising the host. Given the lack of public exploitation data but the high impact, the overall risk remains high until a vendor patch is applied.

Generated by OpenCVE AI on August 12, 2026 at 00:08 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Craft CMS to version 5.10.6 or later, or to 4.18.2 or later if using the 4.x series, to re‑run the required cleanseConfig on decoded configurations.
  • Restrict or disable the control‑panel element‑search endpoint for all users except trusted administrators, or remove the feature entirely if it is not required.
  • Enforce strict CSRF token validation and consider disabling advanced FieldLayout configuration from public or non‑trusted interfaces to reduce the attack surface.

Generated by OpenCVE AI on August 12, 2026 at 00:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 14 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 11 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Craft CMS 5.0.0-RC1 before 5.10.6 Authenticated RCE via condition.config
First Time appeared Craftcms
Craftcms craft Cms
Weaknesses CWE-915
CPEs cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*
Vendors & Products Craftcms
Craftcms craft Cms
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': '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'}


Subscriptions

Craftcms Craft Cms
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-14T19:53:02.701Z

Reserved: 2026-08-10T15:09:12.955Z

Link: CVE-2026-72778

cve-icon Vulnrichment

Updated: 2026-08-14T19:52:58.363Z

cve-icon NVD

Status : Deferred

Published: 2026-08-11T13:19:08.207

Modified: 2026-08-26T16:57:52.167

Link: CVE-2026-72778

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T10:47:41Z

Weaknesses
  • CWE-915

    Improperly Controlled Modification of Dynamically-Determined Object Attributes