CVE-2026-72778

Craft CMS 5.0.0-RC1 before 5.10.6 Authenticated RCE via condition.config

State
Published
Severity
8.7 High
Published
Aug 11, 2026
Updated
Oct 8, 2026
Reserved
Aug 10, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.08.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NVulnCheck
3.18.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HVulnCheck

Weaknesses

  • CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes

Affected Products

ProductVersions
cmscraftcms
  • 5.0.0-RC1 to before 5.10.6Affected
  • 5.10.6Not affected
cmscraftcms
  • 4.0.0-RC1 to before 4.18.2Affected
  • 4.18.2Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.