CVE-2026-137305
Grav Form Plugin before 9.2.4 Code Injection via File Field Upload Destination
8.7
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.
Affected products and versions
| Product / package | Ecosystem / vendor | Versions | Fixed in | Source |
|---|---|---|---|---|
| grav-plugin-form | getgrav | 0 → <9.2.4 | 9.2.4 | CVE.org |