CVE-2026-137305 - Grav Form Plugin before 9.2.4 Code Injection via File Field Upload Destination
Vulnerability · Reported by NVD · · CWE-94
- Severity
- High Risk score 87/100
- CVSS
- 8.7 v4.0 · from NVD
- Exploit chance (EPSS)
- 0.67% Higher than 47% of CVEs
- Known exploited
- No Not in CISA KEV
Summary
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.
How this vulnerability can be exploited
This is a code injection flaw (CWE-94). An attacker can exploit this vulnerability remotely over the network, with a low-privileged account, and without any action from a user. Attack complexity is low, so no special conditions are needed.
Is it being exploited?
The EPSS model estimates a 0.67% chance this CVE will be exploited in the next 30 days, which is low and higher than 47% of all published CVEs.
Patch priority and what to do
Schedule patching in your next maintenance window, and sooner for internet-facing systems. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Until patched, restrict network access to the service (firewall, VPN, WAF rules). 4) Review logs for signs of exploitation since the publication date.
CVSS vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S
Tags
CVE-2026-137305
Sources & references
- Original article / advisory (NVD) ↗
- NIST NVD: CVE-2026-137305 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
How this data is collected: methodology & sources.