Unrated severityNVD Advisory· Published Jul 15, 2026· Updated Jul 28, 2026
Grav before 9.1.8 Arbitrary File Write via Twig-Processed Filename
CVE-2026-61873
Description
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.
Affected products
2- Range: <9.1.8
Patches
Vulnerability mechanics
References
2- github.com/getgrav/grav/security/advisories/GHSA-q532-mvx7-42qgmitrevendor-advisory
- www.vulncheck.com/advisories/grav-before-arbitrary-file-write-via-twig-processed-filenamemitrethird-party-advisory
News mentions
0No linked articles in our index yet.