RCE in Craftcms Cms
CVE-2026-31857
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 str…
Vulnerability class: RCE (Remote Code Execution)
EPSS: 0.007 (47.7th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Craftcms Cms — versions >= 5.0.0-RC1, < 5.9.9, >= 4.0.0-beta.1, < 4.17.4
- Craftcms Craft_cms — versions 4.0.0, 5.0.0
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Patch, Vendor Advisory)
- security-advisories@github.com (Patch, x_refsource_MISC)
Frequently asked questions
- What is CVE-2026-31857?
- CVE-2026-31857 is a high-severity vulnerability in Craftcms Cms, classified under Code Injection. CVSS score: 8.8/10. Published 2026-03-11.
- How severe is CVE-2026-31857?
- High severity. CVSS v3 base score is 8.8 out of 10.