# CVE-2026-42845: Grav: Anonymous Page Content Overwrite via Form File Upload filename Override

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.74%, higher than 55% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-06T23:03:13.000Z
- Modified: 2026-10-26T18:10:00.173Z
- Also known as: GHSA-w4rc-p66m-x6qq
- Weaknesses: CWE-20, CWE-73
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- getgrav grav-plugin-form: < 9.1.0
- getgrav/grav-plugin-form (Packagist): before 9.1.0

## Every score

- GitHub_M: CVSS:4.0 7.7 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-w4rc-p66m-x6qq> (exploit, web)
- <https://github.com/getgrav/grav-plugin-form/commit/48bacc4187e1cff815000e526d5ca2878484867f> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42845> (advisory)
- <https://github.com/getgrav/grav> (package)

## Sources

- CVE List: [CVE-2026-42845](https://www.cve.org/CVERecord?id=CVE-2026-42845), CVE Terms of Use, modified 2026-05-12
- GitHub Advisory Database: [GHSA-w4rc-p66m-x6qq](https://github.com/advisories/GHSA-w4rc-p66m-x6qq), CC-BY-4.0, modified 2026-05-13
- NVD: [CVE-2026-42845](https://nvd.nist.gov/vuln/detail/CVE-2026-42845), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-42845 · Whole record: https://cve.day/CVE-2026-42845.json · Rebuilt by cve.day 2026-11-25T22:59:21.217Z
