CVE-2026-72697
published high CVSS 4.0 · 7.1Grav CMS before 2.0.16 Path Traversal via media_directory
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 CMS before 2.0.16 contains a path traversal vulnerability in the media_directory() Twig function that fails to validate filesystem paths, allowing authenticated users to enumerate and access files outside intended scope. Attackers with page authoring privileges can supply arbitrary filesystem paths to media_directory() and use the allow-listed filepath accessor on Medium objects to read file contents of any file matching configured media extensions that the web server process can access.
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 | 6.5 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N | — |
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-47ch-6w46-6xm7) https://github.com/getgrav/grav/security/advisories/GHSA-47ch-6w46-6xm7
- VulnCheck Advisory: Grav CMS before 2.0.16 Path Traversal via media_directory https://www.vulncheck.com/advisories/grav-cms-before-path-traversal-via-media-directory
Provider assertions
2VulnCheck · cna
Grav CMS before 2.0.16 Path Traversal via media_directory
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- af53a70540aadfdfb4252f5bae166fe53104e759ba15e3bed2b2a2f075a17148
- Ingested
- 09 Oct 2026, 16:37:07 UTC
- Source record
- Official CVE record