BuzzPHP
LightDarkSystem

Craft CMS: Authenticated RCE via `condition.config` JSON cleanse bypass

High severity. Published 6 August 2026. Update craftcms/cms to the fixed version of your branch (5.10.6, 4.18.2): composer update craftcms/cms.

Which versions are affected?

PackageAffected versionsFixed in
craftcms/cms (opens in a new tab)>= 5.0.0-RC1, < 5.10.6 | >= 4.0.0-RC1, < 4.18.25.10.6, 4.18.2

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show craftcms/cms
composer audit

Advisory details

SeverityHigh
Published
Updated
CVECVE-2026-72778 (opens in a new tab)
GHSAGHSA-265m-7826-wjqm (opens in a new tab)
WeaknessCWE-915

What the advisory says

Craft CMS has an authenticated remote code execution issue in the control panel element-search condition handling.

Craft cleans the outer request-controlled condition array with Component::cleanseConfig(), but Conditions::createCondition() later decodes and merges the JSON string in condition.config without re-running cleanseConfig() on the decoded/merged 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. After JSON decoding, those keys reach FieldLayout object creation and are interpreted by Yii as behavior/event configuration.

Source: GHSA-265m-7826-wjqm (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories