Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. getgrav/grav
  4. ›
  5. CVE-2026-72695

CVE-2026-72695: Grav: Path Traversal in MediaUploadTrait::deleteFile() Allows Arbitrary File Deletion

September 17, 2026

A path traversal vulnerability in MediaUploadTrait::deleteFile() allows an authenticated user with media management permissions to delete arbitrary files on the server. The method validates only the basename portion of the filename using Utils::checkFilename(), while the directory path (which may contain ../ sequences) is preserved and passed unvalidated to unlink(). This enables directory escape from the intended media storage path.

References

  • github.com/advisories/GHSA-jq29-c7v8-rg55
  • github.com/getgrav/grav/security/advisories/GHSA-jq29-c7v8-rg55
  • nvd.nist.gov/vuln/detail/CVE-2026-72695
  • www.vulncheck.com/advisories/grav-before-path-traversal-via-mediauploadtrait-deletefile

Code Behaviors & Features

Detect and mitigate CVE-2026-72695 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.16

Fixed versions

  • 2.0.16

Solution

Upgrade to version 2.0.16 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

packagist/getgrav/grav/CVE-2026-72695.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:19:46 +0000.