Path Traversal in Getgrav Grav

CVE-2026-72695

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.

Vulnerability class: Path Traversal (Directory Traversal)

EPSS: 0.006 (44.5th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-72695?
CVE-2026-72695 is a high-severity vulnerability in Getgrav Grav, classified under Path Traversal. CVSS score: 8.1/10. Published 2026-08-25.
How severe is CVE-2026-72695?
High severity. CVSS v3 base score is 8.1 out of 10.