CVE-2026-31857
CVE-2026-31857 is a high-severity vulnerability in Craftcms Craft Cms with a CVSS 3.x base score of 8.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-94.
Key facts
- Severity: High (CVSS 3.x base score 8.8)
- CVSS v4: 8.1
- EPSS exploit prediction: 1% (47th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2026-11257
- Weakness: CWE-94
- Affected product: Craftcms Craft Cms
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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 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.
- How severe is CVE-2026-31857?
- CVE-2026-31857 has a CVSS 3.x base score of 8.8, rated high severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2026-31857 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (47th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-31857?
- CVE-2026-31857 primarily affects Craftcms Craft Cms. In total, 11 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2026-31857?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2026-31857 have an EU (EUVD) identifier?
- Yes. CVE-2026-31857 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-11257.
- When was CVE-2026-31857 published?
- CVE-2026-31857 was published on 2026-03-11 and last updated on 2026-06-17.
References
- https://github.com/craftcms/cms/commit/8d4903647dcfd31b8d40ed027e27082013347a80
- https://github.com/craftcms/cms/security/advisories/GHSA-fp5j-j7j4-mcxc
Affected products (11)
- 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:beta1:*:*:*:*:*:*
- cpe:2.3:a:craftcms:craft_cms:4.0.0:beta2:*:*:*:*:*:*
- cpe:2.3:a:craftcms:craft_cms:4.0.0:beta3:*:*:*:*:*:*
- cpe:2.3:a:craftcms:craft_cms:4.0.0:beta4:*:*:*:*:*:*
- 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:*:*:*:*:*:*
More vulnerabilities in Craftcms Craft Cms
- CVE-2025-32432 — Critical (CVSS 10.0): Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond. Starting from…
- CVE-2023-41892 — Critical (CVSS 10.0): Craft CMS is a platform for creating digital experiences. This is a high-impact, low-complexity attack vector. Users…
- CVE-2026-32267 — Critical (CVSS 9.8): Craft CMS is a content management system (CMS). From version 4.0.0-RC1 to before version 4.17.6 and from version…
- CVE-2024-56145 — Critical (CVSS 9.8): Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond. Users of affected…
- CVE-2024-37843 — Critical (CVSS 9.8): Craft CMS up to v3.7.31 was discovered to contain a SQL injection vulnerability via the GraphQL API endpoint.
- CVE-2021-27903 — Critical (CVSS 9.8): An issue was discovered in Craft CMS before 3.6.7. In some circumstances, a potential Remote Code Execution…
All CVEs affecting Craftcms Craft Cms →
Other CWE-94 (Code Injection) vulnerabilities
- CVE-2026-57624 — Critical (CVSS 10.0): Unauthenticated Remote Code Execution (RCE) in Blocksy Companion Pro <= 2.1.46 versions.
- CVE-2026-10134 — Critical (CVSS 10.0): IBM Langflow OSS 1.0.0 through 1.9.3 allows an attacker to read every secret available to the Langflow process, read…
- CVE-2026-53576 — Critical (CVSS 10.0): Kestra is an open-source, event-driven orchestration platform. Prior to 1.0.45 and 1.3.21, the authentication filter…
- CVE-2026-10561 — Critical (CVSS 10.0): IBM Langflow OSS 1.0.0 through 1.9.3 has an vulnerability due to an improper isolation of Python execution combined…
- CVE-2026-25470 — Critical (CVSS 10.0): Improper Control of Generation of Code ('Code Injection') vulnerability in ACPT ACPT (Pro) - Custom Post Types Plugin…
- CVE-2026-48836 — Critical (CVSS 10.0): Unauthenticated Remote Code Execution (RCE) in Easy Invoice <= 2.1.19 versions.