CVE-2026-61873

HIGH

Grav before 9.1.8 Arbitrary File Write via Twig-Processed Filename

Title source: cna
STIX 2.1

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.

References (2)

Core 2
Core References
Vendor Advisory vendor-advisory
GitHub Security Advisory (GHSA-q532-mvx7-42qg)
https://github.com/getgrav/grav/security/advisories/GHSA-q532-mvx7-42qg
Third Party Advisory third-party-advisory
VulnCheck Advisory: Grav before 9.1.8 Arbitrary File Write via Twig-Processed Filename
https://www.vulncheck.com/advisories/grav-before-arbitrary-file-write-via-twig-processed-filename

Scores

CVSS v3 8.1
EPSS 0.0026
EPSS Percentile 17.2%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

CWE
CWE-73
Status published
Products (2)
getgrav/grav < 9.1.8
getgrav/grav 9.1.8
Published Jul 15, 2026
Tracked Since Jul 15, 2026