Path traversal in Grav CMS - CVE-2026-42608
Published: May 5, 2026
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.