CVE-2026-86732: Improper Control of Generation of Code ('Code Injection') in craftcms cms
Description
Craft CMS versions before 5.10.12 contain a remote code execution vulnerability in the element-index endpoint that allows authenticated content editors to instantiate arbitrary classes through the criteria parameter. Attackers can inject a malicious class via criteria[withTransforms][0][class] that reaches ImageTransforms::normalizeTransform(), then use a PHP gadget chain with yii\rbac\PhpManager to execute code by pointing itemFile to a request log containing PHP payload in the User-Agent header.
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-86732 is a remote code execution vulnerability in Craft CMS prior to version 5.10.12. The flaw exists in the element-index endpoint, where authenticated content editors can instantiate arbitrary classes through the criteria parameter. Specifically, attackers can inject a malicious class via criteria[withTransforms][0][class], which is processed by ImageTransforms::normalizeTransform(). This enables a PHP gadget chain using yii\rbac\PhpManager to execute arbitrary code by pointing itemFile to a request log containing a PHP payload embedded in the User-Agent header.
Potential Impact
Successful exploitation of this vulnerability allows authenticated content editors to execute arbitrary PHP code on the server, potentially leading to full system compromise. The vulnerability requires authentication with content editor privileges but does not require user interaction. The CVSS 4.0 score of 8.7 indicates high severity with network attack vector, low attack complexity, and no user interaction required.
Mitigation Recommendations
A fix is available in Craft CMS version 5.10.12. Users should upgrade to version 5.10.12 or later to remediate this vulnerability. No additional mitigations are specified. Patch status is confirmed by the version range indicating affected versions are prior to 5.10.12.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-08T11:31:09.013Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6aa029bfacd9273b49d8b696
Added to database: 09/08/2026, 15:29:03 UTC
Last enriched: 09/16/2026, 01:55:45 UTC
Last updated: 10/24/2026, 03:05:11 UTC
Views: 72
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.