Intel

AIKIDO-2026-19997

craftcms/cms is vulnerable to Remote Code Execution

CVE-2026-72778Published Jul 31, 2026
July 31, 2026

82

CVSS Score

High

Remote Code Execution

Are you affected? Scan for Free

TL;DR

Craft CMS cleanses the outer element-search condition array but re-decodes and merges the JSON in the condition config without cleansing it again. Yii special configuration keys hidden inside that JSON string survive the first cleanse and are interpreted as behavior and event configuration during field-layout creation. An authenticated control-panel user can inject these keys to execute operating-system commands as the web user. The fix re-cleanses the decoded configuration before it is applied.

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 and authenticated control-panel users can submit element-search condition configuration.

Versions

4.0.0 - 4.18.1

Fixed in 4.18.2

5.0.0 - 5.10.5

Fixed in 5.10.6

Background info

craftcms/cms is vulnerable to Remote Code Execution in versions 4.0.0 - 4.18.1 and 5.0.0 - 5.10.5.

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