Craft CMS
cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*
- >= 5.6.0, <= 5.9.12
A remote code execution vulnerability has been identified in Craft CMS versions 5.6.0 prior to 5.9.13. This vulnerability allows any authenticated user with control panel access to exploit it, bypassing previous security fixes. The issue arises because the 'fieldLayouts' parameter in the 'ElementIndexesController::actionFilterHud()' method is sent directly to 'FieldLayout::createFromConfig()' without proper sanitization. This oversight enables the injection of Yii2 behavior/event keys, which can be exploited to execute arbitrary code.
Exploitation of this vulnerability allows for remote code execution on the server where Craft CMS is running.
To reproduce this vulnerability, an authenticated user with control panel access can send a 'fieldLayouts' array containing configuration data with keys prefixed by 'as' or 'on'. The 'ElementIndexesController::actionFilterHud()' method will process this unsanitized data, allowing the injection of behaviors that can be exploited to execute code remotely.
Users can update to Craft CMS version 5.9.13 or later, where this vulnerability has been patched.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.