CVE-2026-56382

High

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.

SeverityHigh
CVSS7.2
Exploit probability—
ProductCraftcms/cms
PublishedJun 21, 2026
First seenJun 21, 2026

How to fix

Update
  • craftcms/cms5.9.14 or later

Affected products

ProductAffected versionsFixed in
craftcms/cmsPackagist5.5.0 ≤ v < 5.9.145.9.14

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.