CVE-2026-61873 Details
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.
An arbitrary file write vulnerability has been identified in the Grav Form plugin, affecting versions prior to 9.1.8. The issue arises in the 'process.save.filename' parameter, which is initially validated against path traversal before being processed by Twig templates. However, this validation is not reapplied after rendering, creating a time-of-check to time-of-use (TOCTOU) vulnerability. Attackers can exploit this by submitting form data with path traversal sequences, which are then processed through Twig, allowing them to write arbitrary files, including PHP webshells, to the web root or other sensitive directories.
Users are advised to update Grav to version 9.1.8 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 15, 2026CISA-ADP
Assessed Jul 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/getgrav/grav/security/advisories/GHSA-q532-mvx7-42qg | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/getgrav/grav/security/advisories/GHSA-q532-mvx7-42qg | [email protected] | AdvisoryExploitRemedyVendor |
| https://www.vulncheck.com/advisories/grav-before-arbitrary-file-write-via-twig-processed-filename | [email protected] | AdvisoryVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-73 | External Control of File Name or Path | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Grav | <= 9.1.7 (semver) |
CPE
Remediation
| |
| Grav Form | All versions |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | CISA-ADP |
| Jul 15, 2026 | New CVE Received | [email protected] |
Volerion