Skip to content
OpenAdvisories
High · 8.8 Public exploit CVE-2026-72778 EUVD-2026-56102GHSA-265m-7826-wjqmGHSA-w36c-qxrq-v7fw

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

Published Aug 11, 2026 · Updated Oct 8, 2026 · Assigned by VulnCheck

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.

Affected products

VendorProductAffectedFixed
craftcms cms 5.0.0-RC1 – < 5.10.6, 4.0.0-RC1 – < 4.18.2 5.10.6

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist craftcms/cms >= 5.0.0-RC1, < 5.10.6 5.10.6 GHSA-265m-7826-wjqm
Packagist craftcms/cms >= 4.0.0-RC1, < 4.18.2 4.18.2 GHSA-265m-7826-wjqm

References