Path traversal in Grav CMS - CVE-2026-42608

 

Path traversal in Grav CMS - CVE-2026-42608

Published: May 5, 2026


Vulnerability identifier: #VU130086
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2026-42608
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Grav CMS
Affected software:
Grav CMS

Detailed vulnerability description

The vulnerability allows a remote attacker to write arbitrary files.

The vulnerability exists due to path traversal in FormFlash::__construct() / getTmpDir() when processing the __form-flash-id POST parameter. A remote attacker can send a specially crafted POST request with traversal sequences to write arbitrary files.

A vulnerable instance must expose at least one form-enabled page.


How to mitigate CVE-2026-42608

Install security update from vendor's website.

Sources