PT-2026-81138 · Grav · Grav

·

CVE-2026-72695

·

Published

2026-08-25

·

Updated

2026-08-25

CVSS v3.1

8.1

High

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Name of the Vulnerable Software and Affected Versions Grav versions prior to 2.0.16
Description An issue exists where authenticated users with media management permissions can delete arbitrary files. This occurs because the deleteFile() function in MediaUploadTrait only validates the basename of the filename, failing to sanitize directory traversal sequences such as ../. Consequently, these unvalidated paths are passed to the unlink() function, allowing the deletion of files located outside the designated media storage directory.
Recommendations Update Grav to version 2.0.16 or later. As a temporary mitigation, restrict media management permissions to only highly trusted users.

Exploit

Fix

Path traversal

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-72695
GHSA-JQ29-C7V8-RG55

Affected Products

Grav