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

High severity, published 2026-08-06. Update craftcms/cms to the fixed version of your branch (5.10.6, 4.18.2): composer update craftcms/cms.

Canonical URL: https://buzzphp.com/security/ghsa-265m-7826-wjqm · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high |
| Published | 2026-08-06 |
| Updated | 2026-09-01 |
| CVE | [CVE-2026-72778](https://nvd.nist.gov/vuln/detail/CVE-2026-72778) |
| GHSA | [GHSA-265m-7826-wjqm](https://github.com/advisories/GHSA-265m-7826-wjqm) |
| Weakness | CWE-915 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| craftcms/cms | >= 5.0.0-RC1, < 5.10.6 or >= 4.0.0-RC1, < 4.18.2 | 5.10.6, 4.18.2 |

## What to do

Update craftcms/cms to the fixed version of your branch (5.10.6, 4.18.2): composer update craftcms/cms.

Check which version you run with `composer show craftcms/cms`, and every affected package with `composer audit`.

## About this advisory

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.



## Links

- [GHSA-265m-7826-wjqm on GitHub](https://github.com/advisories/GHSA-265m-7826-wjqm)
- [CVE-2026-72778 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-72778)
- [All Composer security advisories](https://buzzphp.com/security)
