Skip to main content
← All vulnerabilities
CVE-2025-66297GHSA-858Q-77WX-HHX6

Grav vulnerable to Privilege Escalation and Authenticated Remote Code Execution via Twig Injection

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.8.0-beta.27
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

Grav is a file-based Web platform. Prior to 1.8.0-beta.27, a user with admin panel access and permissions to create or edit pages in Grav CMS can enable Twig processing in the page frontmatter. By injecting malicious Twig expressions, the user can escalate their privileges to admin or execute arbitrary system commands via the scheduler API. This results in both Privilege Escalation (PE) and Remote Code Execution (RCE) vulnerabilities. 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 2

GitHub · getgrav/grav