Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-137305: high-severity vulnerability (CVSS 8.7) in getgrav grav-plugin-form.
What happened
Original description from the source: 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.
Why it matters
High severity, CVSS 8.7.
Affected products and versions
getgrav grav-plugin-form < 9.2.4
| Product | Versions | Fixed in |
|---|---|---|
| getgrav grav-plugin-form | < 9.2.4 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://github.com/getgrav/grav/security/advisories/GHSA-4grx-p93p-25w8 — CVE Program
- https://github.com/getgrav/grav-plugin-form/commit/3daa9cb66c43b6d472473dcbf0c312c8e66b1769 — CVE Program
- https://www.vulncheck.com/advisories/grav-form-plugin-before-9.2.4-code-injection-via-file-field-upload-destination — CVE Program
Weaknesses (CWE): CWE-94
Relevant change history
Published
Preliminary advisory published.