CVE-2026-112774 Craft CMS 5.8.0 before 5.11.0 Admin RCE via ContentBlock Field Layout

High 8.7 Published Updated

Authenticated administrators can execute arbitrary OS commands and disclose secrets by injecting Yii behaviors via field layouts in Craft CMS.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-112774?

CVE-2026-112774 is a high-severity code injection vulnerability in craftcms cms, published on 19 Oct 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-94

Which versions are affected by CVE-2026-112774?

How do I fix CVE-2026-112774?

No fix has been published for CVE-2026-112774 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-112774 being exploited?

There is no known exploitation of CVE-2026-112774 in the wild and no public exploit code.

Sources

Also known as GHSA-9m6c-jxf8-fjvm, GHSA-j6r9-fxgv-j7x5.

Is CVE-2026-112774 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free