What’s Vulnerable › Vulnerabilities
CVE-2026-72695: Grav before 2.0.16 Path Traversal via MediaUploadTrait deleteFile
- Severity: high (CVSS 8.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-08-25 · updated 2026-10-12
- Weakness: CWE-22
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
- getgrav grav: before 2.0.16 — fixed in 2.0.16
How to fix
Upgrade to a fixed version: getgrav grav 2.0.16. Check the vendor advisory for mitigations.
References
- https://github.com/getgrav/grav/security/advisories/GHSA-jq29-c7v8-rg55
- https://www.vulncheck.com/advisories/grav-before-path-traversal-via-mediauploadtrait-deletefile
- https://github.com/getgrav/grav/security/advisories/GHSA-jq29-c7v8-rg55
Get alerted when CVE-2026-72695 or the next vulnerability affects your stack