CVE-2026-112774: Improper Control of Generation of Code ('Code Injection') in craftcms cms
Description
Craft CMS versions from 5.8.0 up to but not including 5.11.0 contain a remote code execution vulnerability. Authenticated administrators can exploit this flaw by injecting Yii behaviors via a JSON-string field layout to ContentBlock::setFieldLayout(). This allows attackers with the allowAdminChanges setting enabled to bypass cleanseConfig() and execute operating system commands as the web user, potentially disclosing sensitive information.
CVSS v4.0
Score 8.7high
Affected software
craftcms
cms
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-112774 is a remote code execution vulnerability in Craft CMS affecting versions >=5.8.0 and <5.11.0. The vulnerability arises because authenticated administrators can supply a JSON-string field layout to ContentBlock::setFieldLayout() that includes 'as X' or 'on X' keys. These keys bypass the cleanseConfig() function, enabling injection of Yii behaviors that execute OS commands as the web user. This can lead to unauthorized command execution and disclosure of secrets if the allowAdminChanges configuration is enabled.
Potential Impact
Successful exploitation allows authenticated administrators to execute arbitrary operating system commands with the privileges of the web user. This can lead to full compromise of the affected system, including disclosure of sensitive information and potential further system control.
Mitigation Recommendations
A fix is available in Craft CMS version 5.11.0 and later. Users should upgrade to version 5.11.0 or newer to remediate this vulnerability. Until patched, disabling the allowAdminChanges setting can reduce the attack surface by preventing attackers from exploiting this vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-10-19T18:10:49.940Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ad670ea2cdf04f65685174f
Added to database: 10/19/2026, 19:35:06 UTC
Last enriched: 10/19/2026, 19:48:38 UTC
Last updated: 10/19/2026, 22:27:01 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.