CVE-2026-56382 Details
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.
A remote code execution vulnerability has been identified in Craft CMS versions 5.5.0 through 5.9.13. The issue arises in the FieldsController's actionRenderCardPreview method, where the fieldLayoutConfig POST parameter is passed directly to Fields::createLayout() without proper sanitization. This oversight allows authenticated admin users to inject Yii2 event handlers, such as 'on init' keys, into the fieldLayoutConfig parameter. Exploiting this vulnerability enables the execution of arbitrary PHP code and the disclosure of sensitive information, including environment variables that may contain database credentials and the CRAFT_SECURITY_KEY. The vulnerability has been patched in Craft CMS version 5.9.14.
Users can upgrade to Craft CMS version 5.9.14 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 21, 2026CISA-ADP
Assessed Jun 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/craftcms/cms/security/advisories/GHSA-86vw-x4ww-x467 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/craftcms/cms/security/advisories/GHSA-86vw-x4ww-x467 | [email protected] | AdvisoryExploitRemedyVendor |
| https://www.vulncheck.com/advisories/craft-cms-remote-code-execution-via-missing-config-sanitization-in-fieldscontroller | [email protected] | AdvisoryVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Craft CMS | >= 5.5.0, <= 5.9.13 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jun 22, 2026 | CVE Modified | CISA-ADP |
| Jun 21, 2026 | New CVE Received | [email protected] |
Volerion