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

High 8.8 Published Updated

Unauthenticated attackers can exploit path traversal in Grav's FormFlash component to write arbitrary files, potentially disrupting service or modifying application behavior.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-42608?

CVE-2026-42608 is a high-severity path traversal vulnerability in Getgrav Grav, published on 11 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-22

Which versions are affected by CVE-2026-42608?

2 open source packages ship an affected version, including getgrav/grav. It affects 1 product.

PackageAffectedFixed in
getgrav/grav PackagistAll versions2.0.0-beta.2
getgrav/grav PackagistAll versions2.0.0-beta.2

Products include Getgrav Grav.

How do I fix CVE-2026-42608?

Upgrade getgrav/grav to 2.0.0-beta.2 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-42608 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42608 exists.

All Getgrav Grav vulnerabilities

Sources

Also known as GHSA-hmcx-ch82-3fv2.

Is CVE-2026-42608 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free