CVE-2026-72697
Published:August 25, 2026
Updated:September 24, 2026
Grav CMS before 2.0.16 contains a path traversal vulnerability in the media_directory() Twig function that fails to validate filesystem paths, allowing authenticated users to enumerate and access files outside intended scope. Attackers with page authoring privileges can supply arbitrary filesystem paths to media_directory() and use the allow-listed filepath accessor on Medium objects to read file contents of any file matching configured media extensions that the web server process can access.
Affected Packages
https://github.com/getgrav/grav.git (GITHUB):
Affected version(s) >=0.1.0 <2.0.16Fix Suggestion:
Update to version 2.0.16getgrav/grav (PHP):
Affected version(s) >=0.8.0 <2.0.16Fix Suggestion:
Update to version 2.0.16getgrav/grav (PHP):
Affected version(s) >=dev-add-claude-github-actions-1770170196497 <2.0.16Fix Suggestion:
Update to version 2.0.16Related Resources (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.1
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
EPSS
Base Score:
0.31