Craft CMS vulnerable to behavior injection RCE via EntryTypesController
Description
Published to the GitHub Advisory Database
Mar 16, 2026
Reviewed
Mar 16, 2026
Published by the National Vulnerability Database
Mar 16, 2026
Last updated
Mar 16, 2026
The fix for GHSA-7jx7-3846-m7w7 (commit 395c64f0b80b507be1c862a2ec942eaacb353748) only patched
src/services/Fields.php, but the same vulnerable pattern exists inEntryTypesController::actionApplyOverrideSettings().In
src/controllers/EntryTypesController.phplines 381-387:The
$settingsarray fromparse_stris passed directly toCraft::configure()withoutComponent::cleanseConfig(). This allows injecting Yii2 behavior/event handlers viaasoronprefixed keys, the same attack vector as the original advisory.You need Craft control panel administrator permissions, and
allowAdminChangesmust be enabled for this to work.An attacker can use the same gadget chain from the original advisory to achieve RCE.
Users should update to Craft 5.9.11 to mitigate the issue.
References