# CVE-2026-42607: Grav: Remote Code Execution (RCE) via Malicious Plugin ZIP Upload in Direct Install Feature

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- 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): 4.38%, higher than 91% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-05T21:21:10.000Z
- Modified: 2026-10-26T18:10:00.173Z
- Also known as: GHSA-w48r-jppp-rcfw
- Related: CVE-2026-42613
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Grav is a file-based Web platform. Prior to 2.0.0-beta.2, an authenticated user with administrative privileges can achieve Remote Code Execution (RCE) by uploading a specially crafted ZIP file through the "Direct Install" tool. While the system attempts to block direct .php file uploads, it fails to inspect the contents of uploaded ZIP archives. Once a malicious plugin is extracted, it can execute arbitrary PHP code or drop a persistent web shell on the server. This vulnerability is fixed in 2.0.0-beta.2.

(As written by CVE List.)

## Affected

- getgrav grav: < 2.0.0-beta.2
- getgrav/grav (Packagist): before 2.0.0-beta.2

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-w48r-jppp-rcfw> (exploit, web)
- <https://github.com/getgrav/grav/commit/5a12f9be8314682c8713e569e330f11805d0a663> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42607> (advisory)
- <https://github.com/getgrav/grav> (package)

## Sources

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

---

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