CVE-2026-42845 Grav: Anonymous Page Content Overwrite via Form File Upload filename Override
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- PHP
Description
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| getgrav grav-plugin-form(Packagist) | < 9.1.0 | 9.1.0 | Fixed |
| getgrav grav-plugin-form | = < 9.1.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| getgrav grav-plugin-form(Packagist) | < 9.1.0 | 9.1.0 |
| getgrav grav-plugin-form | = < 9.1.0 | No fix listed |
References
- https://github.com/getgrav/grav/security/advisories/GHSA-w4rc-p66m-x6qq exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/getgrav/grav-plugin-form/commit/48bacc4187e1cff815000e526d5ca2878484867f patch
- github.com product
- github.com