CVE-2026-56382

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.
Configurations

No configuration.

History

25 Oct 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) Craft CMS (paquete de composer craftcms/cms) versiones >= 5.5.0 y menor o igual que 5.9.13 contienen una vulnerabilidad de ejecución remota de código en el método FieldsController::actionRenderCardPreview(), el cual pasa el parámetro POST fieldLayoutConfig directamente a Fields::createLayout() sin llamar a Component::cleanseConfig(). Un usuario administrador autenticado puede inyectar manejadores de eventos de Yii2 (p. ej., claves ’on init’) a través del parámetro fieldLayoutConfig para ejecutar código PHP arbitrario y divulgar información sensible (como variables de entorno que contienen credenciales de base de datos y CRAFT_SECURITY_KEY). El problema está solucionado en la versión 5.9.14.

22 Jun 2026, 12:16

Type Values Removed Values Added
References () https://github.com/craftcms/cms/security/advisories/GHSA-86vw-x4ww-x467 - () https://github.com/craftcms/cms/security/advisories/GHSA-86vw-x4ww-x467 -

21 Jun 2026, 14:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-06-21 14:16

Updated : 2026-10-25 23:10


NVD link : CVE-2026-56382

Mitre link : CVE-2026-56382

CVE.ORG link : CVE-2026-56382


JSON object : View

Products Affected

No product.

CWE
CWE-94

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