Description
Directory Traversal vulnerability in Grav CMS 2.0.3 through 2.0.6 allows a remote attacker to obtain sensitive information via the GravExtension.php and the mediaDirFunc method.
Published: 2026-10-15
Score: 6.5 Medium
EPSS: 1.1% Low
KEV: No
Impact: Remote Sensitive Data Disclosure
Action: Apply Update
AI Analysis

Impact

Directory Traversal in Grav CMS allows a remote attacker to navigate the server file structure via the mediaDirFunc method in GravExtension.php. The vulnerability results in the disclosure of sensitive information, exposing files that should be protected. The weakness is a classic path traversal flaw, classified under CWE-200 for information exposure and CWE-22 for directory traversal.

Affected Systems

Grav CMS versions 2.0.3 through 2.0.6 are affected. The issue tracks the core GravExtension.php component and is documented in the 2.0.6 source tree. No other vendors or product variants are listed.

Risk and Exploitability

The CVSS score of 6.5 indicates a moderate impact. The EPSS of 1% suggests a low but non‑zero probability of exploitation in the wild. The vulnerability is not yet listed in the CISA KEV catalogue. Based on the description, the likely attack vector is remote via a web request to a Grav-powered site. Successful exploitation would allow an attacker to read arbitrary files and potentially gather credentials or other sensitive data.

Generated by OpenCVE AI on October 16, 2026 at 22:17 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Grav CMS to version 2.0.7 or later, where the path traversal bug in GravExtension.php has been fixed.
  • If an upgrade is not immediately possible, restrict or block access to the GravExtension.php endpoint by configuring the web server or firewall to limit request paths to only the allowed directories.
  • Review and tighten file permissions on the media and configuration directories to prevent unauthorized read access, ensuring that the directories are not world readable.

Generated by OpenCVE AI on October 16, 2026 at 22:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 18 Oct 2026 06:45:00 +0000

Type Values Removed Values Added
First Time appeared Getgrav
Getgrav grav Cms
Vendors & Products Getgrav
Getgrav grav Cms

Fri, 16 Oct 2026 22:45:00 +0000

Type Values Removed Values Added
Title Directory Traversal in Grav CMS 2.0.3-2.0.6 via GravExtension.php enabling remote sensitive data disclosure

Thu, 15 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200
CWE-22
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 15 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Description Directory Traversal vulnerability in Grav CMS 2.0.3 through 2.0.6 allows a remote attacker to obtain sensitive information via the GravExtension.php and the mediaDirFunc method.
References

Subscriptions

Getgrav Grav Cms
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-10-15T18:46:40.745Z

Reserved: 2026-08-25T00:00:00.000Z

Link: CVE-2026-78851

cve-icon Vulnrichment

Updated: 2026-10-15T18:45:03.196Z

cve-icon NVD

Status : Deferred

Published: 2026-10-15T17:17:28.640

Modified: 2026-10-16T19:56:15.773

Link: CVE-2026-78851

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-18T06:30:16Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')