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

Published Updated

CVSS score

High

8.7/10

CVSS 4.0 · Scored by VulnCheck Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
Proof of concept
1 on GitHub, unverified
Fix
Available
9.2.4
Attack path
Over the network
Any signed-in user, no user action

What is CVE-2026-137305?

CVE-2026-137305 is a high-severity vulnerability in getgrav grav-plugin-form, published on 26 Nov 2026.

Official 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.

Weakness: CWE-94

How severe is CVE-2026-137305?

CVE-2026-137305 scores 8.7 out of 10 under CVSS 4.0, which is high severity. It was scored by VulnCheck.

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High

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

Which versions are affected by CVE-2026-137305?

1 open source package ship an affected version, including getgrav/grav-plugin-form.

PackageAffectedFixed in
getgrav/grav-plugin-form Packagist
pkg:composer/getgrav/grav-plugin-form
All versions9.2.4

How do I fix CVE-2026-137305?

Upgrade getgrav/grav-plugin-form to 9.2.4 or later.

Is CVE-2026-137305 being exploited?

There is no known exploitation of CVE-2026-137305 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-4grx-p93p-25w8, GHSA-fjr8-4mf4-7wvw.

Is CVE-2026-137305 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free