CVE-2026-42608: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in getgrav grav
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.
AI Analysis
Technical Summary
Grav versions before 2.0.0-beta.2 contain a CWE-22 path traversal vulnerability in the FormFlash core component. By manipulating the __form-flash-id POST parameter (which corresponds to session_id), an unauthenticated attacker can traverse directories on the server filesystem. This traversal enables the attacker to create arbitrary directories and write files (index.yaml) with attacker-controlled content. Such unauthorized file system modifications can alter application behavior and compromise data integrity. The vulnerability has a CVSS 4.0 score of 8.8 (high severity) and is resolved in version 2.0.0-beta.2.
Potential Impact
Exploitation allows unauthenticated attackers to traverse the filesystem and write arbitrary files, potentially modifying application behavior and causing data integrity issues or service disruption. This can undermine the security and stability of affected Grav installations.
Mitigation Recommendations
Upgrade Grav to version 2.0.0-beta.2 or later, where this vulnerability is fixed. Since the vendor advisory confirms the fix in this version, applying this update fully mitigates the issue. No other mitigation steps are indicated.
CVE-2026-42608: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in getgrav grav
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Grav versions before 2.0.0-beta.2 contain a CWE-22 path traversal vulnerability in the FormFlash core component. By manipulating the __form-flash-id POST parameter (which corresponds to session_id), an unauthenticated attacker can traverse directories on the server filesystem. This traversal enables the attacker to create arbitrary directories and write files (index.yaml) with attacker-controlled content. Such unauthorized file system modifications can alter application behavior and compromise data integrity. The vulnerability has a CVSS 4.0 score of 8.8 (high severity) and is resolved in version 2.0.0-beta.2.
Potential Impact
Exploitation allows unauthenticated attackers to traverse the filesystem and write arbitrary files, potentially modifying application behavior and causing data integrity issues or service disruption. This can undermine the security and stability of affected Grav installations.
Mitigation Recommendations
Upgrade Grav to version 2.0.0-beta.2 or later, where this vulnerability is fixed. Since the vendor advisory confirms the fix in this version, applying this update fully mitigates the issue. No other mitigation steps are indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-29T00:31:15.725Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a01f78ecbff5d86102f2032
Added to database: 5/11/2026, 3:36:46 PM
Last enriched: 5/11/2026, 3:54:16 PM
Last updated: 5/12/2026, 3:48:51 AM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.