Technical impact
Craft CMS versions from 5.0.0 up to but not including 5.11.4 contain a flaw in the ImageTransforms::normalizeTransform() method that allows attackers to instantiate arbitrary PHP classes by supplying a null class reference with a __class key. Through the Craft Commerce payments/pay redirect template that calls customer.photo.getUrl() with a custom transform, the vulnerability can be triggered to create instances of classes such as yii\rbac\PhpManager, enabling arbitrary PHP code execution. The impact is full remote code execution on the web server, granting attackers complete control if successful.
Affected Systems
Any installation of Craft CMS 5.0.0 through 5.11.3 that includes Craft Commerce. The affected products are listed under the craftcms:cms vendor, covering all builds of Craft CMS in this version range.
Risk and Exploitability
The CVSS score of 9.3 indicates critical severity. EPSS data is not available, and the vulnerability is not yet listed in CISA’s KEV catalog. Attackers can reach the vulnerable method via the Craft Commerce payments/pay redirect template, so exploitation is likely limited to environments where an attacker can supply or influence a template transform. Once executed, the vulnerability permits arbitrary PHP code execution, effectively allowing a full system compromise.