CVE-2026-72695: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in getgrav grav
Grav versions prior to 2.0.16 contain a path traversal vulnerability in the MediaUploadTrait::deleteFile() function. This flaw allows authenticated users with media management permissions to delete arbitrary files outside the intended media directory by using directory traversal sequences in filenames. The vulnerability arises because only the basename of the filename is validated, while directory paths containing '../' sequences are not properly checked before being passed to the unlink() function.
AI Analysis
Technical Summary
CVE-2026-72695 is a path traversal vulnerability in Grav before version 2.0.16. The issue exists in the MediaUploadTrait::deleteFile() method, which permits authenticated users with media management rights to delete files arbitrarily by supplying filenames with directory traversal sequences. The method validates only the basename portion of the filename but does not sanitize directory paths containing '../' sequences, allowing deletion of files outside the designated media storage directory.
Potential Impact
An attacker with authenticated media management permissions can delete arbitrary files on the server, potentially leading to denial of service or disruption of application functionality. The vulnerability does not require user interaction beyond authentication and has a high impact on confidentiality and integrity as per the CVSS vector.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict media management permissions to trusted users only to reduce risk.
CVE-2026-72695: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in getgrav grav
Description
Grav versions prior to 2.0.16 contain a path traversal vulnerability in the MediaUploadTrait::deleteFile() function. This flaw allows authenticated users with media management permissions to delete arbitrary files outside the intended media directory by using directory traversal sequences in filenames. The vulnerability arises because only the basename of the filename is validated, while directory paths containing '../' sequences are not properly checked before being passed to the unlink() function.
CVSS v4.0
Score 7.1high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-72695 is a path traversal vulnerability in Grav before version 2.0.16. The issue exists in the MediaUploadTrait::deleteFile() method, which permits authenticated users with media management rights to delete files arbitrarily by supplying filenames with directory traversal sequences. The method validates only the basename portion of the filename but does not sanitize directory paths containing '../' sequences, allowing deletion of files outside the designated media storage directory.
Potential Impact
An attacker with authenticated media management permissions can delete arbitrary files on the server, potentially leading to denial of service or disruption of application functionality. The vulnerability does not require user interaction beyond authentication and has a high impact on confidentiality and integrity as per the CVSS vector.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict media management permissions to trusted users only to reduce risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-10T13:02:20.828Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a8cf57aacd9273b49842877
Added to database: 08/25/2026, 01:52:58 UTC
Last enriched: 08/25/2026, 02:09:02 UTC
Last updated: 08/25/2026, 02:32:01 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.