Vulnerability Description
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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/getgrav/grav/security/advisories/GHSA-47ch-6w46-6xm7
- https://www.vulncheck.com/advisories/grav-cms-before-path-traversal-via-media-di
- https://github.com/getgrav/grav/security/advisories/GHSA-47ch-6w46-6xm7
FAQ
What is CVE-2026-72697?
CVE-2026-72697 is a vulnerability with a CVSS score of 6.5 (MEDIUM). 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 file...
How severe is CVE-2026-72697?
CVE-2026-72697 has been rated MEDIUM with a CVSS base score of 6.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-72697?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.