high8.7
CVE-2026-137305
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 unchec…
Impact
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.
An attacker can exploit this over the network, with a regular user account, without any action by a user. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.
Affected products (Getgrav)
| Product | Affected versions |
|---|---|
| Grav-plugin-form | before 9.2.4 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/getgrav/grav/security/advisories/GHSA-4grx-p93p-25w8
- https://github.com/getgrav/grav-plugin-form/commit/3daa9cb66c43b6d472473dcbf0c312c8e66b1769
- https://www.vulncheck.com/advisories/grav-form-plugin-before-9.2.4-code-injection-via-file-field-upload-destination
- https://github.com/advisories/GHSA-fjr8-4mf4-7wvw
- https://nvd.nist.gov/vuln/detail/CVE-2026-137305