CVE-2025-66294: high-severity vulnerability in getgrav grav
Grav is vulnerable to RCE via SSTI through Twig Sandbox Bypass
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
Patch soon. It has a working public exploit.
Grav CMS has a vulnerability in its template engine that allows attackers with editor permissions to run malicious code on the server. The system's attempt to block dangerous commands is weak and can be bypassed.
Server-Side Template Injection (SSTI) in Grav's Twig template engine due to insufficient regex validation in the cleanDangerousTwig method. Authenticated attackers with editor permissions can execute arbitrary code; under specific conditions, unauthenticated access may also be possible. Fixed in version 1.8.0-beta.27.
In the same product, most dangerous first.