Craft CMS code execution via image transform class instantiation
craftcms cms
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| craftcms cms |
|
|
Original description
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.
From the CVE record · VulnCheck