Patchfirst
CVE-2026-42608 Public exploit High · 8.8 EPSS 2.3%

Grav: Unauthenticated Path Traversal & Arbitrary File Write in FormFlash component.

Fix:upgrade grav to 2.0.0-beta.2 or later also fixes CVE-2024-27921 Details ↓

getgrav · grav

Summary

Grav, a file-based web platform from getgrav, contains a path traversal flaw in its FormFlash core component, where the session identifier supplied via the __form-flash-id POST parameter is not properly restricted to a safe directory. An unauthenticated remote attacker can exploit this without user interaction, over the network, and with low complexity by manipulating that identifier to create arbitrary directories and write an attacker-controlled index.yaml file.

Official description · CVE.org

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.

Breakdown
74.9 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 5 months after disclosure.

  1. Disclosedday 0
  2. First seen exploitedVulnCheck KEV evidence+5 mo

See the family tree

3 related vulnerabilities in the same code over 5 months.

Same bug familyLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. CVE-2025-66295Grav vulnerable to Path traversal / arbitrary YAML write via…1 Dec 2025
  2. same family
    CVE-2025-66296Grav vulnerable to Privilege Escalation in Grav Admin: Missing…1 Dec 2025
  3. relatedMedium

    Why these are linked:

    This CVECVE-2026-42608Grav: Unauthenticated Path Traversal & Arbitrary File Write in…11 May 2026

Affected versions and fixes

as published in the CVE record

getgrav grav

Affected: < 2.0.0-beta.2

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: getgrav/grav.

Packagistgetgrav/gravGHSA-hmcx-ch82-3fv2

Upgrade to 2.0.0-beta.2 or later

Fixes this CVE and 1 other known vulnerability in this package (CVE-2024-27921).

Set the version to 2.0.0-beta.2 or later in your composer.json.

The first fix for CVE-2026-42608.

Affected versions

If you runUpgrade to
All versions before 2.0.0-beta.22.0.0-beta.2

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 7 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

1 link, grouped by NVD tag
↑ ↓ chooseEnter openEsc close