CVE-2026-61873
published high CVSS 4.0 · 7.2Grav before 9.1.8 Arbitrary File Write via Twig-Processed Filename
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| getgrav | — | grav0 to < 9.1.8 (affected · semver) · 9.1.8 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.2 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.1 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| getgrav | grav | 0 to < 9.1.8 (affected · semver)9.1.8 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-73 External Control of File Name or Path
References
2- GitHub Security Advisory (GHSA-q532-mvx7-42qg) https://github.com/getgrav/grav/security/advisories/GHSA-q532-mvx7-42qg
- VulnCheck Advisory: Grav before 9.1.8 Arbitrary File Write via Twig-Processed Filename https://www.vulncheck.com/advisories/grav-before-arbitrary-file-write-via-twig-processed-filename
Provider assertions
2VulnCheck · cna
Grav before 9.1.8 Arbitrary File Write via Twig-Processed Filename
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- baa5b98d29a45384770ec18feb5cc68d4143be9fe2f1fc0357cdc1a29d53355a
- Ingested
- 23 Sep 2026, 09:24:40 UTC
- Source record
- Official CVE record