Code Injection in Craft CMS - CVE-2026-112774
Published: November 6, 2026 / Updated: November 7, 2026
Vulnerability details
The vulnerability allows an administrator to execute operating system commands as the web/PHP user in Craft CMS.
The vulnerability exists due to Content Block field-layout JSON strings being decoded after configuration sanitization, allowing attacker-controlled behavior configuration to bypass cleansing when allowAdminChanges is enabled. An administrator can submit a crafted field-layout configuration that attaches a malicious behavior during object creation and executes code on the server.