What’s Vulnerable › Vulnerabilities
CVE-2026-72697: Grav CMS before 2.0.16 Path Traversal via media_directory
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-08-25 · updated 2026-10-12
- Weakness: CWE-22
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.
Affected products
- getgrav grav: before 2.0.16 — fixed in 2.0.16
How to fix
Upgrade to a fixed version: getgrav grav 2.0.16. Check the vendor advisory for mitigations.
References
- https://github.com/getgrav/grav/security/advisories/GHSA-47ch-6w46-6xm7
- https://www.vulncheck.com/advisories/grav-cms-before-path-traversal-via-media-directory
- https://github.com/getgrav/grav/security/advisories/GHSA-47ch-6w46-6xm7
Get alerted when CVE-2026-72697 or the next vulnerability affects your stack