Grav's 24 November 2026 advisory says a page editor can redirect a form upload into a Twig template path. Rendering that upload as a trusted template can execute code with the web server user's permissions.Grav fixed the upload destination handling in Form 9.2.4. The vendor distinguishes Grav 1.7 because page Twig there lacks the sandbox boundary at issue; this advisory does not assign the same incremental impact to that branch.
What it allows
How Does CVE-2026-137305 Turn a Form Upload Into Code Execution?
Grav says the Form plugin took a file field's upload destination from page front matter and stored the file at the resulting location. A page editor could direct an upload into a folder that Twig treats as a template path. The plugin checked some file extensions, but those checks did not prevent a text or image file from being rendered as Twig.
The trust boundary fails when that uploaded file is rendered as a template outside the page-content sandbox. Grav describes a form email action that can render a template selected by the page, and a theme path that can render a replaced template during page views. In the normal editor route, the attacker needs page-editing permission, not media, configuration or administrator permission.
Grav also describes a narrower anonymous-upload scenario on a site whose administrator had already directed the form into a registered template path. That configuration prerequisite matters: the advisory does not say every anonymous form permits code execution. The resulting code runs as the web server user, which can expose site files and account data according to Grav.
See the remote code execution glossary for the impact category. The Vulnerability Intelligence product page explains the broader product context; the Grav advisory defines this flaw's prerequisites.
What Do the Current Records Say About Exploitation?
The CISA KEV catalog version dated 25 November 2026 did not list CVE-2026-137305. Its absence from that dated catalog does not determine whether an attack occurred. The exploitation field remains unknown.
Brandefense's GitHub repository-name search on 26 November 2026 returned one public repository naming CVE-2026-137305. This is a count of repository names at that date, not a count of verified PoCs or incidents. We do not infer exploit reliability or active exploitation from the search result.
Who is affected
Which Grav Form Installations Need the 9.2.4 Fix?
Grav identifies Form plugin 9.2.3 and earlier on Grav 2.x as affected. The main attack path requires an editor who can change the page's form configuration and direct an upload into a Twig template location. A separately described anonymous path requires an administrator to have previously selected such a destination.
Form 9.2.4 confines uploads to the site's user directory and rejects destinations in Twig template paths. Grav says forms already storing uploads under the user directory are unaffected by the new destination restriction. A form that previously wrote outside that directory or into a Twig path must be reconfigured because the patched plugin refuses that upload.
Inventory the Grav core branch, running Form plugin version, page-editor permissions and file-field destinations. The advisory states an upper affected version and a fixed release but no lower bound, so verify the actual installed plugin and its configuration manually. The vulnerability management guide offers a process for recording remediation and verification.
Timeline
- 2026-11-24
Grav published GHSA-4grx-p93p-25w8 and identified Form 9.2.4 as the patched version.
- 2026-11-25
CISA KEV catalog version 2026.11.25 did not list CVE-2026-137305.
- 2026-11-26
NVD published the CVE-2026-137305 record with CVSS 3.1 and 4.0 scores.
What to do
-
Identify the affected deployment
Record each site's Grav core branch and installed Form plugin version. Prioritize Form 9.2.3 or earlier on Grav 2.x, especially where page editors control form configuration.
-
Update Form and verify the running version
Install Form 9.2.4 or a later applicable fixed release. Confirm the running plugin version after deployment and keep the deployment record for each site.
-
Review upload destinations and permissions
Check which editors can change form file-field destinations. Move any legitimate destination outside the user directory to an allowed location before testing its normal upload workflow.
-
Investigate suspicious activity when exposure existed
As defensive guidance, review relevant form-upload, template-rendering and web-server process records for unexpected changes or execution. The vendor advisory provides no specific detection signature.
What Brandefense can do
- Watch your stack for exploited flaws
Name the vendors and products you run, and Brandefense alerts you when a CVE in them is exploited.
- See CVE-2026-137305 in Brandefense Atlas
The Atlas record of CVE-2026-137305: severity, exploitation status and the sources behind it.
- Vulnerability intelligence platform
Brandefense Vulnerability Intelligence follows which vulnerabilities attackers are using, so your team can patch what is under attack first.
Frequently Asked Questions
Does CVE-2026-137305 affect every Grav installation?
No. Grav identifies Form 9.2.3 and earlier on Grav 2.x. The editor path needs control of a form upload destination; the anonymous path needs a pre-existing unsafe destination.
Which Grav Form release fixes this flaw?
Grav names Form 9.2.4 as the patched release. Verify the installed plugin version and move any formerly external upload destination into an allowed location.
Can an anonymous visitor always exploit the upload?
No. Grav describes that path only where an administrator had already configured a form destination inside a Twig template path.
Does the Grav 1.7 branch have the same added impact?
Grav says page Twig on 1.7 is not sandboxed, so this flaw gives a page editor no additional capability there. The advisory's affected impact is scoped to Grav 2.x.
Sources
- Form plugin upload destination security advisoryGrav
- CVE-2026-137305 recordNIST National Vulnerability Database
- Known Exploited Vulnerabilities catalogCISA