7.1
HIGH CVSS 4.0
CVE-2026-72697
Grav CMS before 2.0.16 Path Traversal via media_directory
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.

INFO

Published Date :

Aug. 25, 2026, 2:16 a.m.

Last Modified :

Oct. 12, 2026, 3:10 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-72697 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Getgrav grav
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 MEDIUM 83251b91-4cc7-4094-a5c7-464a1b83ea10
CVSS 3.1 MEDIUM [email protected]
CVSS 3.1 MEDIUM MITRE-CVE
CVSS 4.0 HIGH 83251b91-4cc7-4094-a5c7-464a1b83ea10
CVSS 4.0 HIGH [email protected]
Solution
Update Grav CMS to version 2.0.16 or later to patch the path traversal vulnerability in Twig.
  • Update Grav CMS to 2.0.16 or later.
  • Validate filesystem path inputs in Twig functions.
  • Restrict access to sensitive files.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-72697.

URL Resource
https://github.com/getgrav/grav/security/advisories/GHSA-47ch-6w46-6xm7
https://www.vulncheck.com/advisories/grav-cms-before-path-traversal-via-media-directory
https://github.com/getgrav/grav/security/advisories/GHSA-47ch-6w46-6xm7
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-72697 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-72697 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-72697 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Translated by [email protected]

    Oct. 12, 2026

    Action Type Old Value New Value
    Added Translation Title: Grav de getgrav, Description: Grav CMS anterior a 2.0.16 contiene una vulnerabilidad de salto de ruta en la función Twig media_directory() que no valida las rutas del sistema de archivos, permitiendo a usuarios autenticados enumerar y acceder a archivos fuera del alcance previsto. Atacantes con privilegios de autoría de páginas pueden proporcionar rutas de sistema de archivos arbitrarias a media_directory() y usar el accesor de ruta de archivo permitido en objetos Medium para leer el contenido de cualquier archivo que coincida con las extensiones de medios configuradas al que el proceso del servidor web puede acceder.
  • CVE Modified by [email protected]

    Oct. 08, 2026

    Action Type Old Value New Value
    Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/72xxx/CVE-2026-72697.json">CVE-2026-72697</a>
    Added Reference https://github.com/getgrav/grav/security/advisories/GHSA-47ch-6w46-6xm7
    Added Reference https://www.vulncheck.com/advisories/grav-cms-before-path-traversal-via-media-directory
    Removed Reference https://github.com/getgrav/grav/security/advisories/GHSA-47ch-6w46-6xm7
    Removed Reference https://www.vulncheck.com/advisories/grav-cms-before-path-traversal-via-media-directory
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Oct. 08, 2026

    Action Type Old Value New Value
    Added Reference https://github.com/getgrav/grav/security/advisories/GHSA-47ch-6w46-6xm7
    Removed Reference https://github.com/getgrav/grav/security/advisories/GHSA-47ch-6w46-6xm7
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Aug. 25, 2026

    Action Type Old Value New Value
    Added Reference https://github.com/getgrav/grav/security/advisories/GHSA-47ch-6w46-6xm7
    Added SSVC {'id': 'CVE-2026-72697', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-08-25T18:01:04.836593Z'}
  • New CVE Received by [email protected]

    Aug. 25, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'getgrav', 'product': 'grav', 'versions': [{'status': 'affected', 'version': '0', 'lessThan': '2.0.16', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '2.0.16', 'versionType': 'semver'}], 'defaultStatus': 'unaffected'}]
    Added 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.
    Added CVSS V4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
    Added CWE CWE-22
    Added Reference https://github.com/getgrav/grav/security/advisories/GHSA-47ch-6w46-6xm7
    Added Reference https://www.vulncheck.com/advisories/grav-cms-before-path-traversal-via-media-directory
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.