Craft CMS RCE via ImageTransforms::normalizeTransform() (CVE-2026-130675)

Craft CMS versions 5.0.0 through 5.11.3 are vulnerable to remote code execution via a crafted image transform. An attacker can instantiate arbitrary classes by supplying class:null with a class key, reachable through Craft Commerce's payments/pay redirect template. Upgrade to 5.11.4 or later.

CVE-2026-130675 is a critical remote code execution vulnerability in Craft CMS. Affected versions are 5.0.0 through 5.11.3 (fixed in 5.11.4). The flaw exists in ImageTransforms::normalizeTransform(), which allows attackers to instantiate arbitrary classes by supplying class:null with a __class key. The method can be reached through Craft Commerce's payments/pay redirect template when calling customer.photo.getUrl() with a crafted transform. This can be leveraged to instantiate classes such as yii\rbac\PhpManager and execute PHP code.

Sources: NVD entry (https://nvd.nist.gov/vuln/detail/CVE-2026-130675) and the vendor advisory referenced there (https://github.com/craftcms/cms/security/advisories/GHSA-hq78-cm2m-h24h).

What to do 1. Upgrade Craft CMS to version 5.11.4 or later immediately. 2. If an immediate upgrade is not possible, review the vendor advisory (GHSA-hq78-cm2m-h24h) for any recommended mitigations or workarounds before making changes. 3. Audit Craft Commerce deployments for exposure of the payments/pay redirect template and restrict access to it if it is not required. 4. Review application logs for indicators of exploitation involving crafted transform parameters (e.g., unexpected __class keys). 5. Monitor NVD and vendor channels for further updates or exploit activity.

Sources