CVE-2026-130675: Craft CMS 5.0.0 before 5.11.4 RCE via Image Transform Class Guard Bypass
Craft CMS from 5.0.0 before 5.11.4 contains a remote code execution vulnerability in ImageTransforms::normalizeTransform() that allows attackers to instantiate arbitrary classes by supplying class:null with a class key. Attackers can reach the method through Craft Commerce's payments/pay redirect template calling customer.photo.getUrl() with a crafted transform to instantiate classes like yii\rbac\PhpManager and execute PHP.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Craft CMS versions from 5.0.0 before 5.11.4 are affected. The described reachable path uses Craft Commerce's payments/pay redirect template and a crafted image transform passed to customer.photo.getUrl().
What does an attacker need to exploit it?
The vulnerability is remotely exploitable with no privileges or user interaction required. An attacker supplies a crafted transform containing class:null and a __class key to bypass the class guard and instantiate arbitrary classes.
What is the potential impact of successful exploitation?
An attacker can instantiate classes such as yii\rbac\PhpManager and execute PHP, resulting in remote code execution. The reported impact includes compromise of confidentiality, integrity, and availability.