CVE-2026-72695
HIGH 7.1CVSS 4.0Grav: Path Traversal in MediaUploadTrait::deleteFile() Allows Arbitrary File Deletion
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.
- Published
- 25 Aug 2026
- Last modified
- 12 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Deferred
- Weakness
- CWE-22
- Also known as
- GHSA-jq29-c7v8-rg55
- Sources
- NVDJSONOSV GHSA-jq29-c7v8-rg55JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 7.1 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N | |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | getgrav/grav | < 2.0.16 | 2.0.16 |
References
- https://github.com/getgrav/grav/security/advisories/GHSA-jq29-c7v8-rg55 · WEB
- https://www.vulncheck.com/advisories/grav-before-path-traversal-via-mediauploadtrait-deletefile · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-72695 · ADVISORY
- https://github.com/getgrav/grav · PACKAGE
History
- 25 Nov 2026 21:05 UTC · NVD: first stored (published 25 Aug 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 17 Sep 2026)