Improper Neutralization of Special Elements Used in a Template Engine in Craft CMS - CVE-2025-57811
Published: April 17, 2026
Craft CMS
Detailed vulnerability description
The vulnerability allows a remote user to execute arbitrary code.
The vulnerability exists due to server-side template injection in the Twig template engine when processing crafted template input. A remote privileged user can inject specially crafted Twig template content to execute arbitrary code.
Exploitation requires administrator access and the ALLOW_ADMIN_CHANGES setting to be enabled.