Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. getgrav/grav
  4. ›
  5. CVE-2026-42608

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

May 5, 2026 (updated May 13, 2026)

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/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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.0.0-beta.2

Fixed versions

  • 2.0.0-beta.2

Solution

Upgrade to version 2.0.0-beta.2 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

packagist/getgrav/grav/CVE-2026-42608.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:07 +0000.