Grav Plugin Form
Monthly
Code injection in the Grav Form plugin (9.2.3 and earlier on Grav 2.x) lets a page editor who can only edit a page's front matter write attacker-controlled files into folders that Twig loads templates from, then have them rendered as trusted templates outside the content sandbox, executing code as the web server user. The destination of a form file field is taken from page front matter and was stored without validation, so a .txt or .svg upload becomes executable template code once it lands in a theme, plugin or system templates folder; the advisory notes an editor needs no media, configuration or admin permissions. Exploitation requires an authenticated page-editor account on a Grav 2.x site (on Grav 1.7 page Twig is already unsandboxed so the bug adds nothing), except in the non-default case where an administrator has pointed a form destination at a Twig-registered folder, which can allow an anonymous visitor to overwrite a template rendered on every page view. No public exploit code has been identified at the time of analysis, but a vendor fix (Form 9.2.4) is available and the issue is rated a this-week priority.
Stored cross-site scripting in the Grav Form plugin (grav-plugin-form 9.1.39 and earlier) lets an anonymous visitor upload a file that executes script in an administrator's session when that administrator opens it, and on Grav 2.x with Admin2 the script can read the administrator's API token and create a new super-admin account. Exploitation is conditional: it requires a public form field configured to accept any file type (accept:['*'] or an accept rule matching application/octet-stream), a site served by Apache (Caddy is likely affected for the markup case), and a logged-in administrator who opens the uploaded file, while forms using the default accept:['image/*'] and nginx or IIS deployments following Grav's shipped configs are not affected. No public exploit code or CISA KEV entry was identified at time of analysis, and the assessed impact is High rather than Critical because of the non-default form configuration, the web-server dependency and the required administrator interaction.
Open redirect in Grav's form plugin (getgrav/grav-plugin-form) versions 9.1.11 through 9.1.12 allows unauthenticated form submitters to cause the server to issue a 302 redirect to an arbitrary external URL, enabling phishing attacks against site visitors. The vulnerability exists because the redirect process action, introduced in v9.1.11, evaluates user-supplied form field values through Twig expressions without sanitizing the resulting URL, and Grav::redirect() passes that output to the browser without origin validation. No public exploit code has been identified at time of analysis, and no active exploitation is confirmed in CISA KEV, though the low attack complexity and zero-authentication requirement make this straightforward to abuse against any site with a susceptible form blueprint.
Unauthenticated form action execution in the Grav Form Plugin before 9.1.22 allows anonymous visitors to trigger save, upload, email, or call actions defined on login-restricted or unpublished pages. The plugin resolves forms by name across all pages without verifying whether the requesting user is authorized to access the page where the form is defined, so an attacker can POST to any public page while referencing a restricted form by name to bypass access controls entirely. No public exploit or CISA KEV listing has been identified, but the zero-authentication, network-accessible vector makes this trivially exploitable once form names are known.
Code injection in the Grav Form plugin (9.2.3 and earlier on Grav 2.x) lets a page editor who can only edit a page's front matter write attacker-controlled files into folders that Twig loads templates from, then have them rendered as trusted templates outside the content sandbox, executing code as the web server user. The destination of a form file field is taken from page front matter and was stored without validation, so a .txt or .svg upload becomes executable template code once it lands in a theme, plugin or system templates folder; the advisory notes an editor needs no media, configuration or admin permissions. Exploitation requires an authenticated page-editor account on a Grav 2.x site (on Grav 1.7 page Twig is already unsandboxed so the bug adds nothing), except in the non-default case where an administrator has pointed a form destination at a Twig-registered folder, which can allow an anonymous visitor to overwrite a template rendered on every page view. No public exploit code has been identified at the time of analysis, but a vendor fix (Form 9.2.4) is available and the issue is rated a this-week priority.
Stored cross-site scripting in the Grav Form plugin (grav-plugin-form 9.1.39 and earlier) lets an anonymous visitor upload a file that executes script in an administrator's session when that administrator opens it, and on Grav 2.x with Admin2 the script can read the administrator's API token and create a new super-admin account. Exploitation is conditional: it requires a public form field configured to accept any file type (accept:['*'] or an accept rule matching application/octet-stream), a site served by Apache (Caddy is likely affected for the markup case), and a logged-in administrator who opens the uploaded file, while forms using the default accept:['image/*'] and nginx or IIS deployments following Grav's shipped configs are not affected. No public exploit code or CISA KEV entry was identified at time of analysis, and the assessed impact is High rather than Critical because of the non-default form configuration, the web-server dependency and the required administrator interaction.
Open redirect in Grav's form plugin (getgrav/grav-plugin-form) versions 9.1.11 through 9.1.12 allows unauthenticated form submitters to cause the server to issue a 302 redirect to an arbitrary external URL, enabling phishing attacks against site visitors. The vulnerability exists because the redirect process action, introduced in v9.1.11, evaluates user-supplied form field values through Twig expressions without sanitizing the resulting URL, and Grav::redirect() passes that output to the browser without origin validation. No public exploit code has been identified at time of analysis, and no active exploitation is confirmed in CISA KEV, though the low attack complexity and zero-authentication requirement make this straightforward to abuse against any site with a susceptible form blueprint.
Unauthenticated form action execution in the Grav Form Plugin before 9.1.22 allows anonymous visitors to trigger save, upload, email, or call actions defined on login-restricted or unpublished pages. The plugin resolves forms by name across all pages without verifying whether the requesting user is authorized to access the page where the form is defined, so an attacker can POST to any public page while referencing a restricted form by name to bypass access controls entirely. No public exploit or CISA KEV listing has been identified, but the zero-authentication, network-accessible vector makes this trivially exploitable once form names are known.