Skip to main content
← All vulnerabilities
CVE-2026-56382GHSA-86VW-X4WW-X467

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.9.14
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • craftcms cms

    From 5.5.0 · fixed in 5.9.14

  • craftcms/cmsPackagist

    From 5.5.0 · fixed in 5.9.14

References 2

GitHub · craftcms/cms

vulncheck.com