Skip to content
OpenAdvisories
High · 8.7 Public exploit CVE-2025-66294 EUVD-2025-200081GHSA-662m-56v4-3r8f

Grav is vulnerable to RCE via SSTI through Twig Sandbox Bypass

Published Dec 1, 2025 · Updated Dec 2, 2025 · Assigned by GitHub_M

Description

Grav is a file-based Web platform. Prior to 1.8.0-beta.27, a Server-Side Template Injection (SSTI) vulnerability exists in Grav that allows authenticated attackers with editor permissions to execute arbitrary commands on the server and, under certain conditions, may also be exploited by unauthenticated attackers. This vulnerability stems from weak regex validation in the cleanDangerousTwig method. This vulnerability is fixed in 1.8.0-beta.27.

Affected products

VendorProductAffectedFixed
getgrav grav < 1.8.0-beta.27 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist getgrav/grav < 1.8.0-beta.27 1.8.0-beta.27 GHSA-662m-56v4-3r8f

References