CVE Catalog

CVE-2026-72697

MediumCVSS 6.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.31%

23th percentile - higher than 23% of all known CVEs

Summary

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.

Risk Assessment

Enables unauthorized reading of files on the server, potentially including sensitive data, which can lead to information disclosure or further attacks.

Recommendation

Update Grav CMS to version 2.0.16 or later, which includes a fix for path validation in the media_directory() function.

Other vulnerabilities in Grav CMS

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS