CVE-2026-72695
published high CVSS 4.0 · 7.1Grav before 2.0.16 Path Traversal via MediaUploadTrait deleteFile
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| getgrav | — | grav0 to < 2.0.16 (affected · semver) · 2.0.16 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.1 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| getgrav | grav | 0 to < 2.0.16 (affected · semver)2.0.16 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
2- GitHub Security Advisory (GHSA-jq29-c7v8-rg55) https://github.com/getgrav/grav/security/advisories/GHSA-jq29-c7v8-rg55
- VulnCheck Advisory: Grav before 2.0.16 Path Traversal via MediaUploadTrait deleteFile https://www.vulncheck.com/advisories/grav-before-path-traversal-via-mediauploadtrait-deletefile
Provider assertions
2VulnCheck · cna
Grav before 2.0.16 Path Traversal via MediaUploadTrait deleteFile
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4b32705e243b134a9ac8824923db0797d32902e48306cc81a9f292cf2a9b41ef
- Ingested
- 09 Oct 2026, 16:37:07 UTC
- Source record
- Official CVE record