CVE-2026-72698

Grav CMS before 2.0.16 Information Disclosure via Twig Sandbox Bypass

Published Aug 25, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
Grav CMS before 2.0.16 fails to filter system, site, and theme configuration arrays in sandboxed Twig renders, allowing content editors to read sensitive configuration values. Attackers with page-content edit access can access raw configuration arrays including secrets like cache credentials by using dot notation in Twig templates, bypassing the config_denied_paths restrictions.

Analysis

AI-generated

Technical impact

Grav CMS before version 2.0.16 does not properly filter system, site, and theme configuration arrays when rendering sandboxed Twig templates, allowing content editors to read sensitive configuration values such as cache credentials by using dot notation in Twig templates. This flaw represents a classic Information Disclosure weakness (CWE‑200).

Affected Systems

The vulnerability affects the Grav CMS product (getgrav:grav). All installations running any version earlier than 2.0.16 are susceptible; the specific version numbers are not listed in the advisory, but any instance before that patch is impacted.

Risk and Exploitability

The CVSS score of 7.1 indicates a medium‑to‑high severity vulnerability. The EPSS score is not available, and the flaw is not listed in the CISA KEV catalog. Attackers need only page‑content edit access to exploit the issue; the bypass is achieved through dot notation usage in Twig templates, which is not restricted by the config_denied_paths mechanism. Once exploited, an attacker can read raw configuration arrays and potentially obtain confidential credentials, increasing the risk to the confidentiality of the system.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the Grav CMS 2.0.16 patch or later to eliminate the sandbox bypass.
  • Restrict page‑content edit permissions to trusted users or reduce the scope of content editor capabilities to minimize exposure.
  • Audit existing Twig templates for dot notation references to configuration arrays and refactor or remove them to ensure no unintended data leaks.

Generated by OpenCVE AI on August 25, 2026 at 03:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-p597-crqc-m349 Grav: The system, site, and theme Twig variables bypass the content sandbox entirely and are never covered by config_denied_paths
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description Grav CMS before 2.0.16 fails to filter system, site, and theme configuration arrays in sandboxed Twig renders, allowing content editors to read sensitive configuration values. Attackers with page-content edit access can access raw configuration arrays including secrets like cache credentials by using dot notation in Twig templates, bypassing the config_denied_paths restrictions.
Title Grav CMS before 2.0.16 Information Disclosure via Twig Sandbox Bypass
First Time appeared Getgrav
Getgrav grav
Weaknesses CWE-200
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Vendors & Products Getgrav
Getgrav grav
References
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'}

cvssV4_0

{'score': 7.1, 'vector': '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'}

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 8, 2026, 3:24 PM
Reserved
Aug 10, 2026, 1:02 PM
Status
Deferred
Published
Aug 25, 2026, 2:16 AM
Modified
Oct 12, 2026, 3:10 PM