CVE-2026-61873

published 15 Jul 2026 · updated 28 Jul 2026

Grav before 9.1.8 Arbitrary File Write via Twig-Processed Filename

8.1HighCVSS 8.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 9.1.8.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
getgrav<9.1.89.1.8

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-61873 severity on Zeptric[![CVE-2026-61873](https://zeptric.io/badge/cve/CVE-2026-61873.svg)](https://zeptric.io/cve/CVE-2026-61873)