High severity · published Jul 15, 2026
CVE-2026-61873
Grav before 9.1.8 Arbitrary File Write via Twig-Processed Filename
8.1
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
None
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 24% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GR
grav · getgrav
before 9.1.8 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-61873
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-61873
github.com
https://github.com/getgrav/grav/security/advisories/GHSA-q532-mvx7-42qg
www.vulncheck.com
https://www.vulncheck.com/advisories/grav-before-arbitrary-file-write-via-twig-processed-filename
More from grav
9.9
CVE-2024-34082
Grav is a file-based Web platform
9.8
CVE-2026-80203
Grav before 1.0.18 Authentication Bypass via Scoped API Key
9.8
CVE-2026-56710
Grav Login Plugin before 1.0.16 Privilege Escalation via Unlock
9.8
CVE-2026-65008
Grav before 2.0.7 Remote Code Execution via Blueprint dynamicData
9.8
CVE-2021-47812
GravCMS 1.10.7 - Arbitrary YAML Write/Update (Unauthenticated) (2)
