Skip to main content
← All vulnerabilities
CVE-2026-61873

Grav before 9.1.8 Arbitrary File Write via Twig-Processed Filename

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 9.1.8
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

Grav before 9.1.8 contains an arbitrary file write vulnerability in the Form plugin's process.save.filename parameter, which is validated against path traversal before Twig processing but never re-validated after rendering. Attackers can submit form data containing path traversal sequences that are processed through Twig templates, allowing them to write arbitrary files including PHP webshells to the web root or other sensitive directories.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • getgrav grav

    fixed in 9.1.8

References 2

GitHub · getgrav/grav

vulncheck.com