CVE-2026-78851 Details
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.
A directory traversal vulnerability has been identified in Grav CMS versions 2.0.3 through 2.0.6. This vulnerability allows authenticated users with page-editing privileges to access sensitive information by exploiting the 'media_directory' function in Twig. The issue arises because the function does not properly validate paths, enabling attackers to traverse directories and access files readable by the web server user.
Users are advised to remove the 'media_directory' function from the allowed functions in the page-content Twig sandbox or to implement strict path validation before the function is executed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 15, 2026CISA-ADP
Assessed Oct 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/SLO-CYBER-SEC/CVE-2026-78851 | CISA-ADP | ExploitRemedyTechnical Analysis |
| https://github.com/getgrav/grav | [email protected] | ProductSource CodeVendor |
| https://github.com/getgrav/grav/blob/2.0.6/system/config/security.yaml#L325 | [email protected] | Source CodeVendor |
| https://github.com/getgrav/grav/blob/2.0.6/system/src/Grav/Common/Twig/Extension/GravExtension.php#L1629 | [email protected] | Source CodeVendor |
| https://github.com/SLO-CYBER-SEC/CVE-2026-78851 | [email protected] | ExploitRemedyTechnical Analysis |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-200 | Exposure of Sensitive Information to an Unauthorized Actor | CISA-ADP |
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| Grav | 2.0.3 (semver) 2.0.4 (semver) 2.0.6 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 15, 2026 | CVE Modified | CISA-ADP |
| Oct 15, 2026 | New CVE Received | [email protected] |
Volerion