GHSA-jq29-c7v8-rg55: Grav: Path Traversal in MediaUploadTrait::deleteFile() Allows Arbitrary File Deletion
highvulnerability
security
Summary
A path traversal vulnerability (a flaw where an attacker can use sequences like '../' to escape intended directory boundaries) in Grav CMS's MediaUploadTrait::deleteFile() method allows authenticated users with media management permissions to delete arbitrary files on the server. The vulnerability exists because the code only validates the filename itself, not the directory path, allowing an attacker to craft a filename like '../../data/target.txt' that passes validation but then escapes the media folder when the file is deleted.
Vulnerability Details
EPSS (30-day exploit probability)
EPSS: 0.6%
Patch Available
Yes
Disclosure Date
September 17, 2026
Classification
Attack SophisticationModerate
Affected Packages
getgrav/grav@<= 2.0.15 (fixed: 2.0.16)
Monthly digest — independent AI security research
Original source: https://github.com/advisories/GHSA-jq29-c7v8-rg55
First tracked: September 17, 2026 at 08:00 PM
Classified by LLM (prompt v3) · confidence: 95%