CVE-2026-78851

Directory Traversal in Grav CMS 2.0.3-2.0.6 via GravExtension.php enabling remote sensitive data disclosure

Published Oct 15, 2026 CVSS 3.1 · 6.5 Medium EPSS 1.1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
Type Values Removed Values Added
First Time appeared Getgrav
Getgrav grav Cms
Vendors & Products Getgrav
Getgrav grav Cms
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
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'}

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
Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-22

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

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Oct 15, 2026, 6:46 PM
Reserved
Aug 25, 2026, 12:00 AM
Status
Deferred
Published
Oct 15, 2026, 5:17 PM
Modified
Oct 16, 2026, 7:56 PM