CMS
Craft CMS: Potential authenticated Remote Code Execution via malicious attached Behavior
Craft CMS is a content management system (CMS). From version 5.6.0 to before version 5.9.13, a Remote Code Execution (RCE) vulnerability exists in Craft CMS, it can be exploited by any authenticated user with control panel access. This is a bypass of a previous fix. The existing patches add cleanseConfig() to assembleLayoutFromPost() and various FieldsController actions to strip Yii2 behavior/event injection keys ("as" and "on" prefixed keys). However, the fieldLayouts parameter in ElementIndexesController::actionFilterHud() is passed directly to FieldLayout::createFromConfig() without any sanitization, enabling the same behavior injection attack chain. This issue has been patched in version 5.9.13.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5.6.0, < 5.9.13
Fixed in 5.9.13
Mitigation
Upgrade cms to 5.9.13 or later.
References
- Vendor advisory github.com/craftcms/cms/security/advisories/GH…
- Patch github.com/craftcms/cms/commit/97e90b4bdee369c…
- Release notes github.com/craftcms/cms/releases/tag/5.9.13
Timeline
Days relative to CVE publicationFirst public PoC 181 days after publication; not in CISA KEV. First PoC: TRX-0/CVE-2026-33157-craftcms-rce (created 21 Sep 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| TRX-0/CVE-2026-33157-craftcms-rce | 21 Sep 2026 +181 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.