{"id":"GHSA-rj4c-4q9x-543x","title":"Duplicate Advisory: Grav: media_directory() Twig function allows filesystem path traversal and file content disclosure from sandboxed page content","summary":"Duplicate Advisory: Grav: media_directory() Twig function allows filesystem path traversal and file content disclosure from sandboxed page content","severity":"high","cvss":6.5,"cwe":["CWE-22"],"vendor":"getgrav","product":"getgrav/grav","ecosystem":"composer","affected":["getgrav/grav < 2.0.16"],"published":"2026-08-25","updated":"2026-09-17","sourceUpdated":"2026-09-17T20:25:59Z","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-rj4c-4q9x-543x","references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-47ch-6w46-6xm7"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72697"},{"url":"https://www.vulncheck.com/advisories/grav-cms-before-path-traversal-via-media-directory"},{"url":"https://github.com/advisories/GHSA-rj4c-4q9x-543x"}],"tags":["ghsa","composer"],"ingestedAt":"2026-09-17T20:28:02.778Z","slug":"GHSA-rj4c-4q9x-543x","body":"## Overview\n\n### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-47ch-6w46-6xm7. This link is maintained to preserve external references.\n\n### Original Description\nGrav 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.\n\n## Affected packages\n\n- `getgrav/grav < 2.0.16`\n\n## Remediation\n\nRefer to the advisory for the patched release.","depth":"twilight","depthScore":36,"depthScoreParts":{"impact":35.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}