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

- Severity: High 7.2 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-15T11:25:56.100Z
- Modified: 2026-10-24T21:10:00.130Z
- Weaknesses: CWE-73
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- getgrav grav: before 9.1.8 (not affected: 9.1.8)

## Every score

- VulnCheck: CVSS:4.0 7.2 High `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`
- VulnCheck: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-q532-mvx7-42qg> (exploit, vendor-advisory)
- <https://www.vulncheck.com/advisories/grav-before-arbitrary-file-write-via-twig-processed-filename> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-61873](https://www.cve.org/CVERecord?id=CVE-2026-61873), CVE Terms of Use, modified 2026-07-28
- NVD: [CVE-2026-61873](https://nvd.nist.gov/vuln/detail/CVE-2026-61873), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-61873 · Whole record: https://cve.day/CVE-2026-61873.json · Rebuilt by cve.day 2026-11-25T22:59:28.283Z
