CVE-2026-137305
Grav Form Plugin before 9.2.4 Code Injection via File Field Upload Destination
High · 8.7Fix available
- CVSS
- 8.7
- EPSS
- 0.67% (p47)
- Published
- 2026-11-26
- Age
- 3d old
- Modified
- 2026-11-26
- Product
- getgrav grav-plugin-form
- Aliases
- GHSA-4grx-p93p-25w8
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
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.
Fixed in
9.2.4
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | grav-plugin-form | >=0, <9.2.4 | 9.2.4 |
Sources
- NVD · first seen 3d ago · NVD terms of use
- OSV · first seen 3d ago · CC-BY 4.0
- CVE List · first seen 3d ago · CVE Terms of Use
References
- https://github.com/getgrav/grav/security/advisories/GHSA-4grx-p93p-25w8 vendor-advisory
- https://github.com/getgrav/grav-plugin-form/commit/3daa9cb66c43b6d472473dcbf0c312c8e66b1769 patch
- https://www.vulncheck.com/advisories/grav-form-plugin-before-9.2.4-code-injection-via-file-field-upload-destination third-party-advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137305.json advisory
- https://github.com/getgrav/grav-plugin-form package
- https://nvd.nist.gov/vuln/detail/CVE-2026-137305 advisory