8.8

CVE-2026-31857: craftcms cms Code Injection

CVSS: 8.8v3.1HighAnalyzed
Published 11-03-2026Last modified 12-03-2026

Vulnerability summary

CVE-2026-31857 is a high (CVSS 8.8) Code Injection vulnerability in craftcms cms. EPSS estimates a 0.92% chance of exploitation in the next 30 days, higher than 59.6% of scored vulnerabilities.

Overall risk
35/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v3.1 (NVD)
EPSS score
0.92%
0%100%
Low · +0.25 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 11-03-2026
    PublishedVulnerability first disclosed.
  2. 12-03-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 2 sources · 2 versions

EPSS trend

Probability

0.92%

Chance of exploitation in the next 30 days

Percentile

60%

Versus all other CVEs

30-day change

+0.25 pp

From 0.66% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.92%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Craftcms2 products
  • cms≥ 5.0.0-RC1, < 5.9.9 | ≥ 4.0.0-beta.1, < 4.17.4
  • craft_cmsEOL≥ 4.0.0.1, < 4.17.4 | ≥ 5.0.1, < 5.9.9 | 4.0.0 | 4.0.0:beta1 | 4.0.0:beta2 | 4.0.0:beta3 | 4.0.0:beta4 | 4.0.0:rc1 | 4.0.0:rc2 | 4.0.0:rc3 | 5.0.0 | 5.0.0:rc1

1 vendor · 2 products

References

2 links