Skip to content
OpenAdvisories
High · 7.2 CVE-2026-56382 EUVD-2026-38176GHSA-86vw-x4ww-x467GHSA-pmm4-v8f6-4vpp

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

Published Jun 21, 2026 · Updated Nov 8, 2026 · Assigned by VulnCheck

Description

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 products

VendorProductAffectedFixed
craftcms cms 5.5.0 – < 5.9.14 5.9.14

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist craftcms/cms >= 5.5.0, < 5.9.14 5.9.14 GHSA-86vw-x4ww-x467

References