CVE-2026-42608: Grav has Unauthenticated Path Traversal & Arbitrary File Write in its FormFlash component
Grav CMS (v1.7.49.5 and latest development source) is vulnerable to a Zero-Day 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.
References
- github.com/advisories/GHSA-hmcx-ch82-3fv2
- github.com/getgrav/grav
- github.com/getgrav/grav/commit/c66dfeb5ff679a1667678c6335eb9ff3255dfc47
- github.com/getgrav/grav/commit/d904efc33e03ebb597afde8d3368b28cf0423632
- github.com/getgrav/grav/security/advisories/GHSA-hmcx-ch82-3fv2
- nvd.nist.gov/vuln/detail/CVE-2026-42608
Code Behaviors & Features
Detect and mitigate CVE-2026-42608 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →