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.
Severity (CVSS)
| Base score | 7.2 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| 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 |
| Provided by | CNA |
Weaknesses
- CWE-73 — External Control of File Name or Path
Affected products
| Vendor | Product | Versions |
|---|---|---|
| getgrav | grav | 0 to <9.1.8; 9.1.8 |
References
Generated from the official CVE List on 16 Jul 2026 07:01 UTC.