# CVE-2026-72695: Grav before 2.0.16 Path Traversal via MediaUploadTrait deleteFile

- Severity: High 7.1 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-25T01:30:11.868Z
- Modified: 2026-10-12T15:10:00.207Z
- Also known as: GHSA-jq29-c7v8-rg55
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- getgrav grav: before 2.0.16 (not affected: 2.0.16)
- getgrav/grav (Packagist): before 2.0.16

## Every score

- VulnCheck: CVSS:4.0 7.1 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-jq29-c7v8-rg55> (exploit, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/grav-before-path-traversal-via-mediauploadtrait-deletefile> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-72695> (advisory)
- <https://github.com/getgrav/grav> (package)

## Sources

- CVE List: [CVE-2026-72695](https://www.cve.org/CVERecord?id=CVE-2026-72695), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-jq29-c7v8-rg55](https://github.com/advisories/GHSA-jq29-c7v8-rg55), CC-BY-4.0, modified 2026-09-17
- NVD: [CVE-2026-72695](https://nvd.nist.gov/vuln/detail/CVE-2026-72695), Public domain, modified 2026-10-12

---

Page: https://cve.day/CVE-2026-72695 · Whole record: https://cve.day/CVE-2026-72695.json · Rebuilt by cve.day 2026-11-25T22:59:35.090Z
