Craft CMS code execution via signed Twig templates in login redirects
craftcms cms
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| craftcms cms |
|
|
Original description
Craft CMS from 5.10.0 before 5.11.2 contains a remote code execution vulnerability that allows non-administrator control panel users to obtain HMAC-signed Twig templates via the app/render-elements endpoint. Attackers can submit the signed templated returnUrl as the login redirect parameter, triggering unsandboxed renderObjectTemplate() evaluation and executing OS commands as the PHP worker.
From the CVE record · VulnCheck