CVE-2026-56382

published 21 Jun 2026 · updated 8 Nov 2026

Craft CMS - Remote Code Execution via Missing Config Sanitization in FieldsController

7.2HighCVSS 7.2EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 5.9.14.

Craft CMS (composer package craftcms/cms) versions >= 5.5.0 and <= 5.9.13 contain a remote code execution vulnerability in the FieldsController::actionRenderCardPreview() method, which passes the fieldLayoutConfig POST parameter directly to Fields::createLayout() without calling Component::cleanseConfig(). An authenticated admin user can inject Yii2 event handlers (e.g., 'on init' keys) via the fieldLayoutConfig parameter to execute arbitrary PHP code and disclose sensitive information (such as environment variables containing database credentials and CRAFT_SECURITY_KEY). The issue is fixed in version 5.9.14.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
craftcms>=5.5.0 <5.9.145.9.14

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-56382 severity on Zeptric[![CVE-2026-56382](https://zeptric.io/badge/cve/CVE-2026-56382.svg)](https://zeptric.io/cve/CVE-2026-56382)