CVE-2026-61873 HIGH

CVE-2026-61873: Grav before 9.1.8 Arbitrary File Write via Twig-Processed Filename

Vendor Getgrav
Product grav
Weakness CWE-73
Published July 15, 2026
Last update July 15, 2026

CVSS base score

7.2/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality
Integrity

CVSS 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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

July 15, 2026 CVE published
July 15, 2026 Record updated

Related vulnerabilities

04Related CVE