Code Injection in Craft CMS - CVE-2026-112772
Published: November 6, 2026 / Updated: November 7, 2026
Vulnerability details
The vulnerability allows an authenticated Control Panel user to execute arbitrary code as the web user in Craft CMS.
The vulnerability exists due to insufficient validation of transform arrays passed to Asset::getMimeType during sandboxed Twig rendering when enableTwigSandbox is enabled, a non-default configuration. An authenticated Control Panel user can supply behavior or event-handler configuration in a transform array to escape the sandbox and execute code on the server.