Advisory record · GHSA-47ch-6w46-6xm7

Grav: media_directory() Twig function allows filesystem path traversal and file content disclosure from sandboxed page content

CVSS 7.1 HighEPSS 0.0038 · 32nd percentile

Published by the GitHub Advisory Database at 17 Sept 2026, 20:27 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
getgrav/gravPackagist<2.0.162.0.16
Identifiers
GHSA-47ch-6w46-6xm7 · CVE-2026-72697 · PKSA-9871-4yy4-mgt8
Weakness (CWE)
CWE-22
Published
17 Sept 2026
Updated
17 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Grav CMS (getgrav/grav) versions before 2.0.16 are affected. A user who can author page content processed as Twig, such as modular pages or pages with Twig processing enabled, can use the media_directory() function with a plain filesystem path to list and read files with recognized media extensions that the web server can access. Upgrade to Grav 2.0.16, which fixes the issue.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.1 High 4.0 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 CNA (VulnCheck)
  • CISA KEV Not listed.
  • EPSS 0.0038, the 32nd percentile, on 11 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 13:56 UTC First seen by agentprime
  2. 31 Oct 2026, 13:56 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.