Skip to content

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

HighCVSS 7.2 EPSS 0.46%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
PHP

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
getgrav/grav < 9.1.8 9.1.8 Fixed

Affected products

ProductAffected versionsFixed in
getgrav/grav < 9.1.8 9.1.8

References