CVE-2026-86732: Improper Control of Generation of Code ('Code Injection') in craftcms cms
Craft CMS versions before 5.10.12 contain a remote code execution vulnerability in the element-index endpoint. Authenticated content editors can exploit this by injecting a malicious class via the criteria parameter, leading to arbitrary code execution through a PHP gadget chain involving yii\rbac\PhpManager. This vulnerability allows attackers to execute code by manipulating the User-Agent header in a request log.
AI Analysis
Technical Summary
CVE-2026-86732 is a remote code execution vulnerability in Craft CMS affecting versions prior to 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 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 referencing a request log file containing a PHP payload in the User-Agent header.
Potential Impact
Successful exploitation 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 beyond that. The CVSS 4.0 score is 8.7 (high severity), reflecting the network attack vector, low attack complexity, no user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch link is provided in the available data. Until a patch is available, restrict content editor privileges and monitor for suspicious activity related to the element-index endpoint and criteria parameter usage.
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. Authenticated content editors can exploit this by injecting a malicious class via the criteria parameter, leading to arbitrary code execution through a PHP gadget chain involving yii\rbac\PhpManager. This vulnerability allows attackers to execute code by manipulating the User-Agent header in a request log.
CVSS v4.0
Score 8.7high
Affected software
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 affecting versions prior to 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 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 referencing a request log file containing a PHP payload in the User-Agent header.
Potential Impact
Successful exploitation 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 beyond that. The CVSS 4.0 score is 8.7 (high severity), reflecting the network attack vector, low attack complexity, no user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch link is provided in the available data. Until a patch is available, restrict content editor privileges and monitor for suspicious activity related to the element-index endpoint and criteria parameter usage.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-08T11:31:09.013Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6aa029bfacd9273b49d8b696
Added to database: 09/08/2026, 15:29:03 UTC
Last enriched: 09/08/2026, 15:37:25 UTC
Last updated: 09/08/2026, 22:32:34 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.