CVE-2026-61873 PUBLISHED

Grav before 9.1.8 Arbitrary File Write via Twig-Processed Filename

Assigner: VulnCheck
Reserved: 10.07.2026 Published: 15.07.2026 Updated: 15.07.2026

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.

Metrics

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
CVSS Score: 7.2

Product Status

Vendor getgrav
Product grav
Versions Default: unaffected
  • affected from 0 to 9.1.8 (excl.)
  • Version 9.1.8 is unaffected

Credits

  • alienkeric reporter

References

Problem Types

  • External Control of File Name or Path CWE