Path Traversal in Getgrav Grav
CVE-2026-72697
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.
Vulnerability class: Path Traversal (Directory Traversal)
EPSS: 0.003 (22.8th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
Affected products
Weakness classification (CWE)
References
- disclosure@vulncheck.com (vendor-advisory)
- disclosure@vulncheck.com (third-party-advisory)
Frequently asked questions
- What is CVE-2026-72697?
- CVE-2026-72697 is a medium-severity vulnerability in Getgrav Grav, classified under Path Traversal. CVSS score: 6.5/10. Published 2026-08-25.
- How severe is CVE-2026-72697?
- Medium severity. CVSS v3 base score is 6.5 out of 10.