Description
Craft CMS from 5.0.0 before 5.11.0 contains a remote code execution vulnerability that allows authenticated Control Panel users to escape the Twig sandbox via Asset::getMimeType transforms. Attackers can supply 'as' or 'on' keys passed unfiltered to Craft::createObject, attaching malicious behaviors or event handlers that execute code as the web user.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| craftcms | cms | 5.0.0 – < 5.11.0 | 5.11.0 |
References
- GitHub Security Advisory (GHSA-qm9x-rmcj-h2rc) vendor-advisory
- VulnCheck Advisory: Craft CMS 5.0.0 before 5.11.0 RCE via Asset::getMimeType Transform Injection third-party-advisory