Improper Neutralization of Special Elements Used in a Template Engine in Grav CMS - CVE-2025-66299
Published: May 5, 2026
Grav CMS
Detailed vulnerability description
The vulnerability allows a remote user to execute arbitrary code.
The vulnerability exists due to improper neutralization of special elements used in a template engine in the Twig sandbox implementation when processing malicious Twig template directives in editable pages. A remote user can inject crafted template directives to execute arbitrary code.
Exploitation requires permission to edit a page with Twig processing enabled, and the injected code may be triggered when the page is later accessed.