CVE-2025-66294
HIGHGrav < 1.8.0-beta.27 - Server-Side Template Injection via Weak Twig Validation
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2025-66294.
PoCs published by Tarek Nakkouch, including Metasploit module exploits/multi/http/grav_twig_ssti_sandbox_bypass_rce.
AI-analyzed exploit summary This Metasploit module exploits CVE-2025-66301 (broken access control) and CVE-2025-66294 (Twig SSTI sandbox bypass) in Grav CMS to achieve authenticated remote code execution via crafted YAML frontmatter in form pages.
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.
Exploits (1)
This Metasploit module exploits CVE-2025-66301 (broken access control) and CVE-2025-66294 (Twig SSTI sandbox bypass) in Grav CMS to achieve authenticated remote code execution via crafted YAML frontmatter in form pages.
References (2)
Scores
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H