{"id":"CVE-2026-42845","published":"2026-05-11T15:44:35Z","modified":"2026-05-12T13:49:49Z","title":"Grav: Anonymous Page Content Overwrite via Form File Upload filename Override","vendor":"getgrav","product":"grav-plugin-form","tier":"tail","description":{"text":"The form plugin for Grav adds the ability to create and use forms. Prior to 9.1.0 , there is an unauthenticated page-content overwrite via file upload (GHSA-w4rc-p66m-x6qq). Public form uploads now strip path components from the POST-supplied filename and hard-block page-content extensions (`md`, `yaml`, `yml`, `json`, `twig`, `ini`) regardless of the configurable dangerous-extensions list. A permissive `accept` policy combined with the default `destination: self@` could otherwise let an attacker overwrite the page's own `.md` and pivot to super-admin via a `process: save` action. This vulnerability is fixed in 9.1.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00741,"percentile":0.55547,"provenance":"source"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"}],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-w4rc-p66m-x6qq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/getgrav/grav-plugin-form/commit/48bacc4187e1cff815000e526d5ca2878484867f","tags":["x_refsource_MISC"]}],"priority":{"score":16.5,"factors":[{"name":"EPSS percentile","points":11.11},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"getgrav","affectedVersions":[{"vendor":"getgrav","product":"grav-plugin-form","versions":["< 9.1.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-12T13:49:13.568715Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"getgrav/grav-plugin-form","vulnerableRanges":["<9.1.0"],"patched":["9.1.0"],"from":["GHSA-w4rc-p66m-x6qq"],"provenance":"source"}],"summary":{"text":"The grav-plugin-form plugin for the Grav CMS, prior to version 9.1.0, lets a form's file upload handling overwrite the page's own content file through a manipulated filename, because path components in the POST-supplied filename were not stripped and page-content extensions were not blocked. An attacker can exploit this over the network without authentication or user interaction, provided the form uses a permissive upload accept policy with the default destination: self@ setting, and the overwritten page content can then be used to escalate to super-admin via a process: save action.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:13Z"},"euvd":{"id":"EUVD-2026-29129","exploited":false,"provenance":"source"}}