GHSA-fp5j-j7j4-mcxc · Severity: high · Ecosystem: composer — CraftCMS has an RCE vulnerability via relational conditionals in the control panel
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.
Conclusion & alert: CVE-2026-31857 is rated Moderate Risk (42.1/100): CVSS High severity, with low exploitation likelihood (EPSS 0.10%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-03-18 | 0.18% | 0.10% | -0.08% |
| 2 | 2026-03-12 | — | 0.18% | — |
Full EPSS history (2 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.1 | 4.0 | HIGH |
|
— | — | [email protected] |
| 8.8 | 3.1 | HIGH |
|
2.8 | 5.9 | [email protected] |
GHSA-fp5j-j7j4-mcxc · Severity: high · Ecosystem: composer — CraftCMS has an RCE vulnerability via relational conditionals in the control panel
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| craftcms | craft_cms | >= 4.0.0.1, < 4.17.4 | cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:* |
| craftcms | craft_cms | >= 5.0.1, < 5.9.9 | cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:* |
| craftcms | craft_cms | 4.0.0 | cpe:2.3:a:craftcms:craft_cms:4.0.0:-:*:*:*:*:*:* |
| craftcms | craft_cms | 4.0.0 | cpe:2.3:a:craftcms:craft_cms:4.0.0:beta1:*:*:*:*:*:* |
| craftcms | craft_cms | 4.0.0 | cpe:2.3:a:craftcms:craft_cms:4.0.0:beta2:*:*:*:*:*:* |
| craftcms | craft_cms | 4.0.0 | cpe:2.3:a:craftcms:craft_cms:4.0.0:beta3:*:*:*:*:*:* |
| craftcms | craft_cms | 4.0.0 | cpe:2.3:a:craftcms:craft_cms:4.0.0:beta4:*:*:*:*:*:* |
| craftcms | craft_cms | 4.0.0 | cpe:2.3:a:craftcms:craft_cms:4.0.0:rc1:*:*:*:*:*:* |
| craftcms | craft_cms | 4.0.0 | cpe:2.3:a:craftcms:craft_cms:4.0.0:rc2:*:*:*:*:*:* |
| craftcms | craft_cms | 4.0.0 | cpe:2.3:a:craftcms:craft_cms:4.0.0:rc3:*:*:*:*:*:* |
| craftcms | craft_cms | 5.0.0 | cpe:2.3:a:craftcms:craft_cms:5.0.0:-:*:*:*:*:*:* |
| craftcms | craft_cms | 5.0.0 | cpe:2.3:a:craftcms:craft_cms:5.0.0:rc1:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/craftcms/cms/commit/8d4903647dcfd31b8d40ed027e27082013347a80 | Patch |
| https://github.com/craftcms/cms/security/advisories/GHSA-fp5j-j7j4-mcxc | Patch Vendor Advisory |