Skip to main content
← All vulnerabilities
CVE-2025-66294GHSA-662M-56V4-3R8F

Grav is vulnerable to RCE via SSTI through Twig Sandbox Bypass

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.8.0-beta.27
1 Metasploit module
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • getgrav grav

    fixed in 1.8.0-beta.27

  • getgrav/gravPackagist

    fixed in 1.8.0-beta.27

References 3

GitHub · getgrav/grav

GitHub · rapid7/metasploit-framework