Skip to content
DayZeroHub
High Not yet writtenCVSS 8.7CVE-2026-137305

CVE-2026-137305: Grav Form Plugin before 9.2.4 Code Injection via File Field Upload Destination

getgrav grav-plugin-form

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

ProductVersionsFixed in
getgrav grav-plugin-form< 9.2.4—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-94

Relevant change history

  1. Published

    Preliminary advisory published.