Skip to content
CVE PROGRAM SOURCE RECORD7.1 High

CVE-2026-72697

Grav CMS before 2.0.16 Path Traversal via media_directory

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

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

getgrav grav

Default version status: unaffected

  • 0 to < 2.0.16affected
  • 2.0.16unaffected
pkg:composer/getgrav/grav

References