← Back

CVE-2026-31857

nvd nist
Published: Mar 11, 2026Modified: Mar 17, 2026

JSON object

Loading...
8.1
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Show more
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XShow less
Source: security-advisories@github.com (Secondary)

Description

Craft is a content management system (CMS). Prior to 5.9.9 and 4.17.4, a Remote Code Execution vulnerability exists in the Craft CMS 5 conditions system. The BaseElementSelectConditionRule::getElementIds() method passes user-controlled string input through renderObjectTemplate() -- an unsandboxed Twig rendering function with escaping disabled. Any authenticated Control Panel user (including non-admin roles such as Author or Editor) can achieve full RCE by sending a crafted condition rule via standard element listing endpoints. This vulnerability requires no admin privileges, no special permissions beyond basic control panel access, and bypasses all production hardening settings (allowAdminChanges: false, devMode: false, enableTwigSandbox: true). Users should update to the patched 5.9.9 or 4.17.4 release to mitigate the issue.

Affected (12)

Products: Craftcms: Craft Cms
1 product
Craft Cms
Configuration A
12 vulnerable
Vulnerable SoftwareAffected Versions
Craftcms
From 4.0.0.1 to 4.17.4
From 5.0.1 to 5.9.9
Version 4.0.0
Version 4.0.0 beta1
Version 4.0.0 beta2
Version 4.0.0 beta3
Version 4.0.0 beta4
Version 4.0.0 rc1
Version 4.0.0 rc2
Version 4.0.0 rc3
Version 5.0.0
Version 5.0.0 rc1

References (2)

Source: security-advisories@github.com
PatchVendor Advisory

Timeline

No history available yet.