# CVE-2026-72697: Grav CMS before 2.0.16 Path Traversal via media_directory

- 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.38%, higher than 33% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-25T01:30:18.001Z
- Modified: 2026-10-12T15:10:00.207Z
- Also known as: GHSA-47ch-6w46-6xm7
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(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 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- 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-47ch-6w46-6xm7> (exploit, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/grav-cms-before-path-traversal-via-media-directory> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-72697> (advisory)
- <https://github.com/getgrav/grav> (package)

## Sources

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

---

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