Intel

AIKIDO-2026-10227

craftcms/cms is vulnerable to Remote Code Execution (RCE)

CVE-2026-31857Published Feb 22, 2026
February 22, 2026

75

CVE Score

High

Remote Code Execution (RCE)

Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to remote code execution (RCE) due to improper handling of element ID templates in condition rules. Untrusted input was rendered without proper sandboxing, allowing crafted templates to execute arbitrary code in certain contexts. The issue is fixed by using a sandboxed template rendering mechanism to prevent unsafe code execution.

How do I fix this?

Upgrade the craftcms/cms library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Versions

3.5.0 - 4.17.3

Fixed in 4.17.4

5.0.0 - 5.9.8

Fixed in 5.9.9

Background info

craftcms/cms is vulnerable to Remote Code Execution (RCE) in versions 3.5.0 - 4.17.3 and 5.0.0 - 5.9.8.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea