Code Injection in Craft CMS - CVE-2026-112773
Published: November 6, 2026 / Updated: November 7, 2026
Vulnerability details
The vulnerability allows an authenticated attacker with Control Panel access to execute arbitrary code as the web user.
The vulnerability exists due to unvalidated element-query criteria accepting behavior configuration during Craft CMS Twig sandbox rendering when enableTwigSandbox is enabled, a non-default setting. An authenticated attacker with Control Panel access can submit crafted criteria through element-select condition rules to inject a behavior that executes code when the query runs.