Skip to main content
← All vulnerabilities
CVE-2026-72697GHSA-47CH-6W46-6XM7

Grav CMS before 2.0.16 Path Traversal via media_directory

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.16
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • getgrav grav

    fixed in 2.0.16

  • getgrav/gravPackagist

    fixed in 2.0.16

References 2

GitHub · getgrav/grav

vulncheck.com