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

Published Nov 26, 2026
·
Updated

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.

Affected Software

1 affected component
Grav Form Plugin<9.2.4

Event History

Nov 26, 2026
CVE Published
via MITRE·01:37 AM
Data Sourced
via MITRE·01:37 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:17 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

A page author who can set a file field upload destination is the relevant attacker. The attacker must be able to direct uploads into a Twig template folder.

2

What does an attacker need to upload?

The attacker can use .txt or .svg files containing Twig content. If the uploaded content is rendered as a trusted template outside the sandbox, it can execute as the web server user.

3

What version should be used to remediate the issue?

Upgrade the Grav Form plugin to version 9.2.4 or later. Versions before 9.2.4 are affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203