Code Injection in Craft CMS - #VU159602
Published: November 6, 2026
Vulnerability details
The vulnerability allows a low-privileged control panel user to execute arbitrary operating system commands as the PHP worker.
The vulnerability exists due to Craft CMS accepting newline characters in emulated X-Craft-Plugin-Licenses API response headers and writing them into .env through app/process-api-response-headers. A low-privileged control panel user with accessCp can inject an attacker-known CRAFT_SECURITY_KEY and, after Craft loads it, forge a signed login redirect that executes commands.