CVE-2026-72695

published 25 Aug 2026 · updated 8 Oct 2026

Grav before 2.0.16 Path Traversal via MediaUploadTrait deleteFile

8.1HighCVSS 8.1EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 2.0.16.

Grav before 2.0.16 contains a path traversal vulnerability in MediaUploadTrait::deleteFile() that allows authenticated users with media management permissions to delete arbitrary files by supplying filenames with directory traversal sequences. The method validates only the basename portion of the filename while preserving unvalidated directory paths containing ../ sequences that are passed to unlink(), enabling deletion of files outside the intended media storage directory.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
getgrav<2.0.162.0.16

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-72695 severity on Zeptric[![CVE-2026-72695](https://zeptric.io/badge/cve/CVE-2026-72695.svg)](https://zeptric.io/cve/CVE-2026-72695)