{"id":"CVE-2026-72695","published":"2026-08-25T01:30:11Z","modified":"2026-10-08T15:24:20Z","title":"Grav before 2.0.16 Path Traversal via MediaUploadTrait deleteFile","vendor":"getgrav","product":"grav","tier":"tail","description":{"text":"Grav before 2.0.16 contains a path traversal vulnerability in MediaUploadTrait::deleteFile() that allows authenticated users with media management permissions to delete arbitrary files by supplying filenames with directory traversal sequences. The method validates only the basename portion of the filename while preserving unvalidated directory paths containing ../ sequences that are passed to unlink(), enabling deletion of files outside the intended media storage directory.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.009,"percentile":0.57662,"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-jq29-c7v8-rg55","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/grav-before-path-traversal-via-mediauploadtrait-deletefile","tags":["third-party-advisory"]}],"priority":{"score":17.2,"factors":[{"name":"EPSS percentile","points":11.53},{"name":"CVSS severity","points":5.67}]},"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-25T17:38:00.813215Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"getgrav/grav","vulnerableRanges":["<2.0.16"],"patched":["2.0.16"],"from":["GHSA-jq29-c7v8-rg55"],"provenance":"source"}],"summary":{"text":"Grav versions before 2.0.16 contain a path traversal flaw in the MediaUploadTrait::deleteFile() method, where only the basename of a supplied filename is validated while directory components containing ../ sequences are passed unchecked to unlink(). An authenticated user with media management permissions can exploit this over the network, with no user interaction required, to delete arbitrary files outside the intended media storage directory.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:24:29Z"},"euvd":{"id":"EUVD-2026-65209","exploited":false,"provenance":"source"}}