CVE-2026-72695
Received Received - Intake

Path Traversal in Grav CMS Media Management

Vulnerability report for CVE-2026-72695, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-25

Last updated on: 2026-08-25

Assigner: VulnCheck

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-25
Last Modified
2026-08-25
Generated
2026-08-25
AI Q&A
2026-08-25
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
grav grav to 2.0.16 (exc)
getgrav grav to 2.0.16 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a path traversal vulnerability in Grav CMS versions before 2.0.16. It allows authenticated users with media management permissions to delete arbitrary files by supplying filenames with directory traversal sequences like ../. The MediaUploadTrait::deleteFile() method only validates the basename of the filename while passing unvalidated directory paths to the unlink() function, enabling deletion of files outside the intended media storage directory.

Detection Guidance

Check Grav CMS version with: grep -r "version" /path/to/grav/vendor/composer/installed.json. If version is below 2.0.16, the system is vulnerable. Review media upload logs for suspicious filenames containing ../ sequences.

Impact Analysis

An attacker with media management permissions could delete critical files such as configuration files, content files, or authentication-related files. This could lead to system compromise, data loss, or denial of service by disrupting Grav CMS functionality.

Compliance Impact

This vulnerability could lead to unauthorized file deletion, potentially violating data integrity requirements under GDPR and HIPAA. Loss of configuration or content files may result in non-compliance with record-keeping and security controls mandated by these regulations.

Mitigation Strategies

Upgrade Grav CMS to version 2.0.16 or later immediately. Temporarily restrict media management permissions to trusted users until patched. Monitor file deletion logs for unauthorized activity.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-72695. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart