ZeroHour

CVE-2026-86732

large

Authenticated Remote Code Execution in Craft CMS before 5.10.12

CVSS 4.0
8.7 high
EPSS
<1%p42
Published
()
Modified
AI analysis

Craft CMS versions before 5.10.12 contain a remote code execution flaw in the element-index endpoint that lets authenticated content editors make the application instantiate arbitrary PHP classes through the criteria parameter. An attacker injects a class name via criteria[withTransforms][0][class], which reaches ImageTransforms::normalizeTransform(), and then chains the yii\rbac\PhpManager gadget by pointing itemFile at a request log containing attacker-supplied PHP in the User-Agent header to execute code. Successful exploitation yields full code execution on the web server, with high impact on the confidentiality, integrity, and availability of the CMS instance and its data. All Craft CMS deployments running versions before 5.10.12 are affected, though exploitation requires valid low-privilege content-editor credentials, so risk concentrates on sites with untrusted or compromised editor accounts. No public proof-of-concept is known, the flaw is not in CISA's KEV catalog, and EPSS estimates only a 0.5% probability of exploitation in the next 30 days, indicating no observed in-the-wild exploitation so far.

What to do: Upgrade Craft CMS to version 5.10.12 or later as soon as possible. Until upgraded, limit content-editor accounts to fully trusted users and review web request logs for POSTs to the element-index endpoint carrying criteria[withTransforms][0][class] values or PHP-looking payloads in the User-Agent header. Also confirm whether the yii\rbac\PhpManager itemFile path or request logs in your configuration are writable in ways an attacker could influence.

Affected
Craft CMSall versions before 5.10.12 (< 5.10.12)
Estimated exposure
largeapproximately 100,000+ Craft CMS sites (order of magnitude 10^5) — Public web-technology adoption surveys (e.g., BuiltWith) place Craft CMS at on the order of tens of thousands to low hundreds of thousands of live, internet-facing sites, and no vendor install counts are published; the requirement for…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

Weakness
CWE-94
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.