Code Injection in Craft CMS - CVE-2026-112770

 

Code Injection in Craft CMS - CVE-2026-112770

Published: November 6, 2026 / Updated: November 7, 2026


Vulnerability identifier: #VU159585
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-112770
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

Craft CMS

How to mitigate CVE-2026-112770

Install security update from vendor's website.

Craft CMS - addressed in versions 4.18.8, 5.11.0

External References

Related Security Bulletins