Skip to main content
EPSS 0.9%top 42%

CVE-2026-86732: Improper Control of Generation of Code ('Code Injection') in craftcms cms

0
High
VulnerabilityCVE-2026-86732cvecve-2026-86732
Published: 09/08/2026 (09/08/2026, 15:14:02 UTC)
Source: CVE Database V5
Vendor/Project: craftcms
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

craftcms

cms

Affected versions
>=5.0.0-RC1 <5.10.12
Packagistmore threats →ai
craftcms/cms
pkg:composer/craftcms/cms
Affected versions
=5.0.0-RC1

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

AILast updated: 09/16/2026, 01:55:45 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses