Description
Craft CMS from 5.8.0 before 5.11.0 contains a remote code execution vulnerability that allows authenticated administrators to inject Yii behaviors by supplying a JSON-string field layout to ContentBlock::setFieldLayout(). Attackers with allowAdminChanges enabled can include 'as X' or 'on X' keys that bypass cleanseConfig() to execute OS commands as the web user and disclose secrets.
Published: 2026-10-19
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

Craft CMS versions 5.8.0 through 5.10.x contain a flaw that lets an authenticated administrator inject custom Yii behavior by submitting a specially crafted JSON‑string field layout to the ContentBlock::setFieldLayout() method. The vulnerability bypasses the cleanseConfig() routine when allowAdminChanges is enabled, allowing the attacker to include 'as X' or 'on X' keys that trigger the execution of operating‑system commands under the web server process. Result is remote code execution and potential disclosure of secrets.

Affected Systems

The flaw affects the Craft CMS content management system from the craftcms:cms vendor. All installations running Craft CMS version 5.8.0 through any 5.10.x release are vulnerable until the issue is patched.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity vulnerability. EPSS data is not published, so the current likelihood of exploitation is uncertain. The flaw is not listed in the CISA KEV catalog, but it requires an authenticated administrative account and the allowAdminChanges option to be active. Attackers with these prerequisites can achieve full control of the host by executing arbitrary OS commands, making this a serious security risk for affected sites.

Generated by OpenCVE AI on October 19, 2026 at 20:25 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Craft CMS to version 5.11.0 or later to replace the vulnerable code
  • If an upgrade is not possible immediately, disable the allowAdminChanges configuration or limit it so that administrators cannot modify field layouts
  • Review existing ContentBlock field layouts and remove any 'as X' or 'on X' keys, ensuring that only properly sanitized configurations are stored
  • Monitor site logs for unexpected changes to content block layouts or execution of suspicious commands

Generated by OpenCVE AI on October 19, 2026 at 20:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 21:15:00 +0000

Type Values Removed Values Added
First Time appeared Craftcms cms
Vendors & Products Craftcms cms

Mon, 19 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
Description Craft CMS from 5.8.0 before 5.11.0 contains a remote code execution vulnerability that allows authenticated administrators to inject Yii behaviors by supplying a JSON-string field layout to ContentBlock::setFieldLayout(). Attackers with allowAdminChanges enabled can include 'as X' or 'on X' keys that bypass cleanseConfig() to execute OS commands as the web user and disclose secrets.
Title Craft CMS 5.8.0 before 5.11.0 Admin RCE via ContentBlock Field Layout
First Time appeared Craftcms
Craftcms craft Cms
Weaknesses CWE-94
CPEs cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*
Vendors & Products Craftcms
Craftcms craft Cms
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-19T19:10:52.576Z

Reserved: 2026-10-19T18:10:49.940Z

Link: CVE-2026-112774

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-19T20:17:54.620

Modified: 2026-10-19T20:59:50.503

Link: CVE-2026-112774

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T21:00:04Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')