Grav Form Plugin before 9.2.4 Code Injection via File Field Upload Destination
- State
- Published
- Severity
- 8.7 High
- Published
- Nov 26, 2026
- Updated
- Dec 1, 2026
- Reserved
- Nov 26, 2026
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.
| Product | Versions |
|---|---|
| grav-plugin-form getgrav | before 9.2.4 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.7 High | VulnCheck | |
| 3.1 | 8.8 High | VulnCheck |
Weaknesses
- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
- GitHub Security Advisory (GHSA-4grx-p93p-25w8)Vendor AdvisoryThird-Party Advisory
- https://github.com/getgrav/grav-plugin-form/commit/3daa9cb66c43b6d472473dcbf0c312c8e66b1769Patch
- VulnCheck Advisory: Grav Form Plugin before 9.2.4 Code Injection via File Field Upload DestinationThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.