CVE-2026-56382CWE-94

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

High · published June 21, 2026

CVSS v4.0
8.6
EPSS
1%
Percentile
58.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
8.6 · HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
0.00886 · 58.9th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-06-21T13:26Z
EPSS history
Timeline
  • 21 JUN 13:26Z
    Craft CMS - Remote Code Execution via Missing Config Sanitization in FieldsController
    cvelistv5