Grav before 9.1.8 Arbitrary File Write via Twig-Processed Filename
cve-program · CVE-2026-61873
PublishedGrav 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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-61873 · CVE overview and exploitation status
cve-program · CVE-2026-61873
Related changes
Linked by CVE identifierNo related changes are available here.