Read the docs

Code injection in Grav Form plugin via file upload destination

Priority MEDIUM 41CWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-94.

Summary

Grav Form plugin before 9.2.4 contains a code injection flaw in Form::uploadFiles() that lets page authors write uploads into Twig template folders by setting an unchecked file field destination. Attackers can upload .txt or .svg files containing Twig code that is rendered as trusted templates outside the sandbox, so code runs as the web server user. The CVSS 4.0 vector shows network attack with low privileges and no user interaction.

Written with Claude Haiku 5.5 from the sources below · 2026-11-27

Description from the CNA

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 now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00667 46th percentileScored 2026-11-30
Fix Fixed grav-plugin-form (getgrav): 9.2.4

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
getgravgrav-plugin-formbefore 9.2.49.2.4Patch availableCNA
  • grav-plugin-form Vendorgetgrav Affected before 9.2.4 Fixed in 9.2.4 Patch available CNA

Remediation

Update grav-plugin-form to version 9.2.4.

Written with Claude Haiku 5.5 from the sources below · 2026-11-27

  • Fix · CNA grav-plugin-form (getgrav) Fixed in 9.2.4

Timeline

  1. 2026-11-26 Threatist record created from CVE-2026-137305
  2. 2026-11-27 Alias added: GHSA-fjr8-4mf4-7wvw
  3. 2026-12-01 CISA SSVC decision points changed

References

  • TI-2026-30893 Grav: Privilege Escalation via Missing Server-Side Validation of groups/access CVSS 3.1CRITICAL 9.4
  • TI-2025-28971 Cross Site Scripting vulnerability in grav v.1.7.48 and before allows an attacker to… CVSS 3.1CRITICAL 9.8
  • TI-2021-04523 Unauthenticated Arbitrary YAML Write/Update leads to Code Execution CVSS 3.1CRITICAL 9.8
  • TI-2026-50940 Grav CMS before 2.0.16 Origin Validation Bypass via Referer CVSS 4.0CRITICAL 9.3
  • TI-2026-46446 Grav before 2.0.7 Remote Code Execution via Blueprint dynamicData CVSS 4.0CRITICAL 9.3
  • TI-2021-22428 GravCMS 1.10.7 - Arbitrary YAML Write/Update (Unauthenticated) (2) CVSS 4.0CRITICAL 9.3
See all 253 →

Sources