CVE-2026-61873CWE-73

Grav before 9.1.8 Arbitrary File Write via Twig-Processed Filename

High · published July 15, 2026

CVSS v4.0
7.2
EPSS
0%
Percentile
38.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
7.2 · HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
0.00460 · 38.9th percentile
Weakness
CWE-73 · External Control of File Name or Path
Published
2026-07-15T11:25Z
EPSS history
Timeline
  • 15 JUL 11:25Z
    Grav before 9.1.8 Arbitrary File Write via Twig-Processed Filename
    cvelistv5