{"id":"CVE-2026-56382","published":"2026-06-21T13:26:58Z","modified":"2026-11-08T14:06:08Z","title":"Craft CMS - Remote Code Execution via Missing Config Sanitization in FieldsController","vendor":"Craft CMS","product":"cms","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00676,"percentile":0.5316,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-86vw-x4ww-x467","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/craft-cms-remote-code-execution-via-missing-config-sanitization-in-fieldscontroller","tags":["third-party-advisory"]}],"priority":{"score":15.7,"factors":[{"name":"EPSS percentile","points":10.63},{"name":"CVSS severity","points":5.04}]},"vendorSlug":"craft-cms","affectedVersions":[{"vendor":"craftcms","product":"cms","versions":[">= 5.5.0, < 5.9.14"]}],"fixedVersions":[{"vendor":"craftcms","product":"cms","versions":["5.9.14"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-06-22T10:30:00.918233Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"craftcms/cms","vulnerableRanges":[">=5.5.0, <5.9.14"],"patched":["5.9.14"],"from":["GHSA-86vw-x4ww-x467"],"provenance":"source"}],"summary":{"text":"Craft CMS versions 5.5.0 through 5.9.13 contain a code injection flaw in the FieldsController::actionRenderCardPreview() method, where the fieldLayoutConfig POST parameter is passed to Fields::createLayout() without config sanitisation. An attacker who is an authenticated admin, reachable over the network and without any user interaction, can inject Yii2 event handlers through that parameter to run arbitrary PHP code and disclose sensitive information such as database credentials and the security key.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:55:12Z"},"euvd":{"id":"EUVD-2026-38176","exploited":false,"provenance":"source"}}