CVE-2026-72778: Craft CMS · Authenticated RCE via `condition.config` JSON cleanse bypass
Affects craftcms/cmsSource GCVE Database
Mentioned vulnerabilities
CVSS 8.7 High : upgrade to 5.10.6 soon.
Data as of 12 Sep 2026, 06:32 UTC
- Patch
- Available – fixed in 5.10.6, 4.18.2
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NWhat to do
Upgrade craftcms/cms to 5.10.6; craftcms/cms to 4.18.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Packagistcraftcms/cms | Affected
| Fixed in
|
| Packagistcraftcms/cms | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available for this vulnerability. Users should upgrade to Craft CMS versions 4.18.2 or later and 5.10.6 or later where this issue is fixed. No additional mitigation is required if the patch is applied.
Description
Craft CMS contains an authenticated remote code execution vulnerability in its control panel element-search condition handling. The flaw arises because the JSON string in the 'condition.config' parameter bypasses the intended configuration cleansing, allowing Yii behavior/event configuration injection. Exploitation requires an authenticated control panel session and a valid CSRF token. Successful exploitation can lead to command execution as the PHP/web user, exposing secrets, database credentials, and enabling site content modification or further internal pivoting.
References
- github.com/craftcms/cms/security/advisories/GHSA-265m-7826-wjqm (opens in a new tab)
- github.com/craftcms/cms/commit/353b5d676c88a854c9f6409ad83b837ca0c0e8da (opens in a new tab)
- github.com/craftcms/cms/commit/789789dc9e2a4e2f2562f51aaf879fb7757d8340 (opens in a new tab)
- github.com/craftcms/cms (opens in a new tab)
- github.com/craftcms/cms/releases/tag/4.18.2 (opens in a new tab)
- github.com/craftcms/cms/releases/tag/5.10.6 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-72778 (opens in a new tab)
- vulncheck.com/advisories/craft-cms-rc1-before-authenticated-rce-via-condition-config (opens in a new tab)