Home

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.

PUBLISHED Reserved 2026-06-21 | Published 2026-06-21 | Updated 2026-06-22 | Assigner VulnCheck




HIGH: 8.6CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
HIGH: 7.2CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Problem types

Improper Control of Generation of Code ('Code Injection')

Product status

Default status
unaffected

5.5.0 (semver) before 5.9.14
affected

5.9.14 (semver)
unaffected

Credits

q1uf3ng reporter

References

github.com/...ms/cms/security/advisories/GHSA-86vw-x4ww-x467 exploit

github.com/...ms/cms/security/advisories/GHSA-86vw-x4ww-x467 (GHSA Advisory GHSA-86vw-x4ww-x467) vendor-advisory

www.vulncheck.com/...config-sanitization-in-fieldscontroller (VulnCheck Advisory: Craft CMS - Remote Code Execution via Missing Config Sanitization in FieldsController) third-party-advisory

cve.org (CVE-2026-56382)

nvd.nist.gov (CVE-2026-56382)

Download JSON