Grav is a file based Web-platform. Twig processing of static pages can be enabled in the front matter by any administrative user allowed to create or edit pages. As the Twig processor runs unsandboxed, this behavior can be used to gain arbitrary code execution and elevate privileges on the instance. The issue was addressed in version 1.7.11.
Grav CMS Command Injection (CVE-2021-29440)
Exploit for Code Injection in Getgrav Grav
Twig allowing dangerous PHP functions by default in getgrav/grav
Grav CMS 1.7.10 Server-Side Template Injection
Grav CMS 1.7.10 - Server-Side Template Injection (SSTI) (Authenticated) Exploit
Grav CMS 1.7.10 - Server-Side Template Injection (SSTI) (Authenticated)
Grav CMS 1.7.10 - Code Execution Vulnerabilities