Grav
Grav is vulnerable to RCE via SSTI through Twig Sandbox Bypass
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.8.0-beta.27
Fixed in 1.8.0-beta.27
Mitigation
Upgrade grav to 1.8.0-beta.27 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 3.1 days after publication; not in CISA KEV. First PoC: Metasploit exploit: Grav CMS Twig SSTI Authenticated Sandbox Bypass RCE (exploit/multi/http/grav_twig_ssti_sandbox_bypass_rce) (Metasploit, 4 Dec 2025).
PoC repositories
Found on GitHub.No PoC repositories found yet.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Metasploit | Metasploit exploit: Grav CMS Twig SSTI Authenticated Sandbox Bypass RCE (exploit/multi/http/grav_twig_ssti_sandbox_bypass_rce) | 4 Dec 2025 | 14 Nov 2026 |