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.
References
Configurations
No configuration.
History
No history.
Information
Published : 2026-08-25 02:16
Updated : 2026-08-31 20:50
NVD link : CVE-2026-72697
Mitre link : CVE-2026-72697
CVE.ORG link : CVE-2026-72697
JSON object : View
Products Affected
No product.
CWE
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
