Code Injection in Craft CMS - CVE-2026-112770
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 server user in Craft CMS.
The vulnerability exists due to missing callable validation in the Twig group filter when processing element-select condition rules with enableTwigSandbox=true, a non-default configuration. An authenticated control panel user can supply an array-callable that writes an attacker-controlled webshell to the webroot and invoke it to execute code.