# CVE-2026-42608: Grav: Unauthenticated Path Traversal & Arbitrary File Write in FormFlash component.

- Severity: High 8.8 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/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): 4.99%, higher than 92% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-05T21:34:58.000Z
- Modified: 2026-10-26T18:10:00.173Z
- Also known as: GHSA-hmcx-ch82-3fv2
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

Grav is a file-based Web platform. Prior to 2.0.0-beta.2, there is a Path Traversal vulnerability within the FormFlash core component. By manipulating the session_id (passed as __form-flash-id in POST requests), an unauthenticated attacker can traverse the filesystem to create arbitrary directories and write an index.yaml file containing attacker-controlled data. This vulnerability can lead to unauthorized modification of application behavior, potential data integrity issues, and service disruption in production environments. This vulnerability is fixed in 2.0.0-beta.2.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:4.0 8.8 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/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:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:P`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-hmcx-ch82-3fv2> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42608> (advisory)
- <https://github.com/getgrav/grav/commit/c66dfeb5ff679a1667678c6335eb9ff3255dfc47> (web)
- <https://github.com/getgrav/grav/commit/d904efc33e03ebb597afde8d3368b28cf0423632> (web)
- <https://github.com/getgrav/grav> (package)

## Sources

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

---

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