CVE-2026-72695

High

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.

SeverityHigh
CVSS8.1
Exploit probability—
ProductGetgrav/grav
PublishedAug 25, 2026
First seenAug 25, 2026

How to fix

Update
  • getgrav/grav2.0.16 or later

Affected products

ProductAffected versionsFixed in
getgrav/gravPackagistv < 2.0.162.0.16

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-72695 · Getgrav/grav · Dark Radar