{"id":"CVE-2026-72697","published":"2026-08-25T01:30:18Z","modified":"2026-10-08T15:24:22Z","title":"Grav CMS before 2.0.16 Path Traversal via media_directory","vendor":"getgrav","product":"grav","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0046,"percentile":0.31823,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-47ch-6w46-6xm7","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/grav-cms-before-path-traversal-via-media-directory","tags":["third-party-advisory"]}],"priority":{"score":10.9,"factors":[{"name":"EPSS percentile","points":6.36},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"getgrav","affectedVersions":[{"vendor":"getgrav","product":"grav","versions":["< 2.0.16"]}],"fixedVersions":[{"vendor":"getgrav","product":"grav","versions":["2.0.16"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-25T18:01:04.836593Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"getgrav/grav","vulnerableRanges":["<2.0.16"],"patched":["2.0.16"],"from":["GHSA-47ch-6w46-6xm7"],"provenance":"source"}],"summary":{"text":"The path traversal flaw lies in the media_directory() Twig function of Grav CMS before 2.0.16, which fails to validate filesystem paths supplied to it. An attacker who is authenticated with page authoring privileges and can reach the web application over the network can supply arbitrary paths and use the filepath accessor on Medium objects to read the contents of files matching configured media extensions that the web server process can access, outside the intended scope.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:58:27Z"},"euvd":{"id":"EUVD-2026-65211","exploited":false,"provenance":"source"}}