# Craft CMS: RCE via missing cleanseConfig in FieldsController::actionRenderCardPreview

High severity, published 2026-07-09. Update craftcms/cms to 5.9.14 or later: composer update craftcms/cms.

Canonical URL: https://buzzphp.com/security/ghsa-86vw-x4ww-x467 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high |
| Published | 2026-07-09 |
| Updated | 2026-08-06 |
| CVE | [CVE-2026-56382](https://nvd.nist.gov/vuln/detail/CVE-2026-56382) |
| GHSA | [GHSA-86vw-x4ww-x467](https://github.com/advisories/GHSA-86vw-x4ww-x467) |
| Weakness | CWE-94 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| craftcms/cms | >= 5.5.0, <= 5.9.13 | 5.9.14 |

## What to do

Update craftcms/cms to 5.9.14 or later: composer update craftcms/cms.

Check which version you run with `composer show craftcms/cms`, and every affected package with `composer audit`.

## About this advisory

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 session:

When the FieldLayout object is constructed, Yii2 processes the on init key as an event handler registration.

## Links

- [GHSA-86vw-x4ww-x467 on GitHub](https://github.com/advisories/GHSA-86vw-x4ww-x467)
- [CVE-2026-56382 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-56382)
- [All Composer security advisories](https://buzzphp.com/security)
