Skip to main content
← All vulnerabilities
CVE-2026-72695GHSA-JQ29-C7V8-RG55

Grav before 2.0.16 Path Traversal via MediaUploadTrait deleteFile

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 before 2.0.16 contains a path traversal vulnerability in MediaUploadTrait::deleteFile() that allows authenticated users with media management permissions to delete arbitrary files by supplying filenames with directory traversal sequences. The method validates only the basename portion of the filename while preserving unvalidated directory paths containing ../ sequences that are passed to unlink(), enabling deletion of files outside the intended media storage directory.

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