CVE-2026-72695
Grav before 2.0.16 Path Traversal via MediaUploadTrait deleteFile
CVSS Score
8.1
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-22 |
| Vendor | getgrav |
| Product | grav |
| Published | Aug 25, 2026 |
Stay Ahead of the Next One
Get instant alerts for getgrav grav
Be the first to know when new high vulnerabilities affecting getgrav grav are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High
Affected Versions
getgrav / grav
0 < 2.0.16
References
Credits
๐ ka3n1x