Vulnerability

CVE-2026-72697

highCVSS 4.0 7.1Published 25 Aug 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /getgrav/grav/security/advisories/GHSA-47ch-6w46-6xm7
  • www.vulncheck.com /advisories/grav-cms-before-path-traversal-via-media-direct…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning