CVE-2026-72697: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in getgrav grav
Grav CMS versions before 2.0.16 have a path traversal vulnerability in the media_directory() Twig function. This flaw allows authenticated users with page authoring privileges to supply arbitrary filesystem paths, enabling them to enumerate and read files outside the intended media directory scope. The vulnerability arises from insufficient validation of filesystem paths, permitting access to any file readable by the web server process that matches configured media extensions.
AI Analysis
Technical Summary
CVE-2026-72697 is a path traversal vulnerability in Grav CMS prior to version 2.0.16. The issue exists in the media_directory() Twig function, which does not properly validate filesystem paths. Authenticated users with page authoring privileges can exploit this to enumerate and read files outside the intended media directory by supplying arbitrary paths. The vulnerability leverages the allow-listed filepath accessor on Medium objects to read file contents of any accessible file matching configured media extensions.
Potential Impact
An attacker with page authoring privileges can read arbitrary files on the server that the web server process has access to, potentially exposing sensitive information. This can lead to information disclosure but does not require higher privileges or user interaction beyond authentication with authoring rights.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict page authoring privileges to trusted users only and monitor for suspicious activity related to file access through the media_directory() function.
CVE-2026-72697: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in getgrav grav
Description
Grav CMS versions before 2.0.16 have a path traversal vulnerability in the media_directory() Twig function. This flaw allows authenticated users with page authoring privileges to supply arbitrary filesystem paths, enabling them to enumerate and read files outside the intended media directory scope. The vulnerability arises from insufficient validation of filesystem paths, permitting access to any file readable by the web server process that matches configured media extensions.
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-72697 is a path traversal vulnerability in Grav CMS prior to version 2.0.16. The issue exists in the media_directory() Twig function, which does not properly validate filesystem paths. Authenticated users with page authoring privileges can exploit this to enumerate and read files outside the intended media directory by supplying arbitrary paths. The vulnerability leverages the allow-listed filepath accessor on Medium objects to read file contents of any accessible file matching configured media extensions.
Potential Impact
An attacker with page authoring privileges can read arbitrary files on the server that the web server process has access to, potentially exposing sensitive information. This can lead to information disclosure but does not require higher privileges or user interaction beyond authentication with authoring rights.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict page authoring privileges to trusted users only and monitor for suspicious activity related to file access through the media_directory() function.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-10T13:02:20.829Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a8cf57aacd9273b4984287b
Added to database: 08/25/2026, 01:52:58 UTC
Last enriched: 08/25/2026, 02:08:48 UTC
Last updated: 08/25/2026, 02:12:18 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.