Craft CMS 5.0.0 before 5.11.4 RCE via Image Transform Class Guard Bypass
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| craftcmscms |
≥ 5.0.0, < 5.11.4→ 5.11.4 |
5.11.4 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- web disclosure@vulncheck.com