CVE-2026-28784

Craft is a content management system (CMS). Prior to 5.8.22 and 4.16.18, it is possible to craft a malicious payload using the Twig map filter in text fields that accept Twig input under Settings in the Craft control panel or using the System Messages utility, which could lead to a RCE. For this to work, you must have administrator access to the Craft Control Panel, and allowAdminChanges must be enabled for this to work, which is against our recommendations for any non-dev environment. Alternatively, you can have a non-administrator account with allowAdminChanges disabled, but you have access to the System Messages utility. Users should update to the patched versions (5.8.22 and 4.16.18) to mitigate the issue.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*
cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*
cpe:2.3:a:craftcms:craft_cms:4.0.0:-:*:*:*:*:*:*
cpe:2.3:a:craftcms:craft_cms:4.0.0:rc1:*:*:*:*:*:*
cpe:2.3:a:craftcms:craft_cms:4.0.0:rc2:*:*:*:*:*:*
cpe:2.3:a:craftcms:craft_cms:4.0.0:rc3:*:*:*:*:*:*
cpe:2.3:a:craftcms:craft_cms:5.0.0:-:*:*:*:*:*:*
cpe:2.3:a:craftcms:craft_cms:5.0.0:rc1:*:*:*:*:*:*

History

17 Jun 2026, 10:29

Type Values Removed Values Added
Summary
  • (es) Craft es un sistema de gestión de contenidos (CMS). Antes de las versiones 5.8.22 y 4.16.18, es posible crear una carga útil maliciosa utilizando el filtro map de Twig en campos de texto que aceptan entrada Twig en Ajustes en el panel de control de Craft o utilizando la utilidad Mensajes del Sistema, lo que podría conducir a una RCE. Para que esto funcione, debe tener acceso de administrador al Panel de Control de Craft, y allowAdminChanges debe estar habilitado para que esto funcione, lo cual va en contra de nuestras recomendaciones para cualquier entorno que no sea de desarrollo. Alternativamente, puede tener una cuenta no administradora con allowAdminChanges deshabilitado, pero tener acceso a la utilidad Mensajes del Sistema. Los usuarios deben actualizar a las versiones parcheadas (5.8.22 y 4.16.18) para mitigar el problema.

05 Mar 2026, 10:37

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.2
CPE cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*
cpe:2.3:a:craftcms:craft_cms:4.0.0:-:*:*:*:*:*:*
cpe:2.3:a:craftcms:craft_cms:5.0.0:rc1:*:*:*:*:*:*
cpe:2.3:a:craftcms:craft_cms:4.0.0:rc2:*:*:*:*:*:*
cpe:2.3:a:craftcms:craft_cms:5.0.0:-:*:*:*:*:*:*
cpe:2.3:a:craftcms:craft_cms:4.0.0:rc1:*:*:*:*:*:*
cpe:2.3:a:craftcms:craft_cms:4.0.0:rc3:*:*:*:*:*:*
References () https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production - () https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production - Technical Description
References () https://github.com/craftcms/cms/pull/18208 - () https://github.com/craftcms/cms/pull/18208 - Issue Tracking, Patch
References () https://github.com/craftcms/cms/security/advisories/GHSA-qc86-q28f-ggww - () https://github.com/craftcms/cms/security/advisories/GHSA-qc86-q28f-ggww - Patch, Vendor Advisory
First Time Craftcms
Craftcms craft Cms

04 Mar 2026, 17:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-03-04 17:16

Updated : 2026-06-17 10:29


NVD link : CVE-2026-28784

Mitre link : CVE-2026-28784

CVE.ORG link : CVE-2026-28784


JSON object : View

Products Affected

craftcms

  • craft_cms
CWE
CWE-1336

Improper Neutralization of Special Elements Used in a Template Engine