CVE-2026-137305
published high CVSS 4.0 · 8.7Grav Form Plugin before 9.2.4 Code Injection via File Field Upload Destination
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| getgrav | — | grav-plugin-form0 to < 9.2.4 · Other versions: unaffected | Affected | Not stated | VulnCheck |
Description
Grav Form plugin before 9.2.4 contains a code injection vulnerability that allows page authors to write uploads into Twig template folders by setting an unchecked file field destination in Form::uploadFiles(). Attackers can upload .txt or .svg files containing Twig and have them rendered as trusted templates outside the sandbox, executing code as the web server user.
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
- 8.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| getgrav | grav-plugin-form | 0 to < 9.2.4 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
3- https://github.com/getgrav/grav-plugin-form/commit/3daa9cb66c43b6d472473dcbf0c312c8e66b1769
- GitHub Security Advisory (GHSA-4grx-p93p-25w8) https://github.com/getgrav/grav/security/advisories/GHSA-4grx-p93p-25w8
- VulnCheck Advisory: Grav Form Plugin before 9.2.4 Code Injection via File Field Upload Destination https://www.vulncheck.com/advisories/grav-form-plugin-before-9.2.4-code-injection-via-file-field-upload-destination
Provider assertions
2VulnCheck · cna
Grav Form Plugin before 9.2.4 Code Injection via File Field Upload Destination
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 81beabe251ce6b484c86bbb538e461d7d6955c39cb9cabec9e5707bee0e52c78
- Ingested
- 01 Dec 2026, 04:35:30 UTC
- Source record
- Official CVE record