Code Injection in Craft CMS - CVE-2025-46731
Published: May 5, 2025 / Updated: May 9, 2025
Craft CMS
Detailed vulnerability description
The vulnerability allows a remote user to execute arbitrary code on the target system.
The vulnerability exists due to improper input validation when handling Twig templates. A remote privileged user can and execute arbitrary PHP code on the target system.
Note, successful exploitation of the vulnerability requires that ALLOW_ADMIN_CHANGES is enabled.