CVE-2026-72697

published 25 Aug 2026 · updated 8 Oct 2026

Grav CMS before 2.0.16 Path Traversal via media_directory

6.5MediumCVSS 6.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 2.0.16.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
getgrav<2.0.162.0.16

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-72697 severity on Zeptric[![CVE-2026-72697](https://zeptric.io/badge/cve/CVE-2026-72697.svg)](https://zeptric.io/cve/CVE-2026-72697)