Skip to content
OpenAdvisories
High · 8.1 CVE-2026-72695 EUVD-2026-65209GHSA-896w-cw95-xq7wGHSA-jq29-c7v8-rg55

Grav before 2.0.16 Path Traversal via MediaUploadTrait deleteFile

Published Aug 25, 2026 · Updated Oct 8, 2026 · Assigned by VulnCheck

Description

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 products

VendorProductAffectedFixed
getgrav grav < 2.0.16 2.0.16

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist getgrav/grav < 2.0.16 2.0.16 GHSA-jq29-c7v8-rg55

References