Improper access control in Form plugin for Grav CMS - CVE-2026-42845
Published: May 5, 2026 / Updated: May 20, 2026
Form plugin for Grav CMS
Detailed vulnerability description
The vulnerability allows a remote attacker to escalate privileges.
The vulnerability exists due to improper access control in the Form plugin file upload handler and page content file handling when processing file uploads with a POST-supplied filename override. A remote attacker can upload a specially crafted markdown file with a chosen filename to overwrite a page's .md content file and escalate privileges.
Exploitation requires a form upload field that permits text files, such as using accept: ['*'], with uploads directed to the page directory via the default self@ destination.