HighGHSA-86vw-x4ww-x467
Craft CMS: RCE via missing cleanseConfig in FieldsController::actionRenderCardPreview
Affected versions
5.5.0 to before 5.9.14 - fixed in 5.9.14Details
The `actionRenderCardPreview()` method in `FieldsController` passes the `fieldLayoutConfig` POST parameter directly to `Fields::createLayout()` without calling `Component::cleanseConfig()`. This allows Yii2 event handler injection via `on eventName` keys in the config array, leading to arbitrary code execution. This is the same vulnerability pattern that was fixed in GHSA-4484-8v2f-5748 (same file, `_fldComponent` method correctly uses `cleanseConfig`), GHSA-qx2q-q59v-wf3j (EntryTypesController), and GHSA-2fph-6v5w-89hh (ElementIndexesController). ## PoC As an admin user with a valid sessio
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-56382
- https://github.com/craftcms/cms/security/advisories/GHSA-86vw-x4ww-x467
- https://nvd.nist.gov/vuln/detail/CVE-2026-56382
- https://github.com/craftcms/cms
- https://www.vulncheck.com/advisories/craft-cms-remote-code-execution-via-missing-config-sanitization-in-fieldscontroller
Is your site exposed?Run a free passive scan. See your platform, versions and the issues on your surface in under a minute.
Check if my site is affected