Code Injection in Craft CMS - CVE-2026-112772

 

Code Injection in Craft CMS - CVE-2026-112772

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


Vulnerability identifier: #VU159587
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-112772
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 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.


Affected software

Craft CMS

How to mitigate CVE-2026-112772

Install security update from vendor's website.

Craft CMS - update to 5.11.0

External References

Related Security Bulletins