Grav Form Plugin before 9.2.4 Code Injection via File Field Upload Destination

State
Published
Severity
8.7 High
Published
Nov 26, 2026
Updated
Dec 1, 2026
Reserved
Nov 26, 2026

Read the record on cve.org

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.

ProductVersions
grav-plugin-form getgravbefore 9.2.4 Affected

Weaknesses

  • CWE-94 Improper Control of Generation of Code ('Code Injection')

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.