Description
Grav before 2.0.16 contains an incomplete default denylist in the Twig sandbox configuration that fails to block access to system configuration secrets. Attackers with page-edit permission can use config.get() or config.toArray() in Twig templates to retrieve sensitive values like system.cache.redis.password when config_access is enabled.
Published: 2026-08-25
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Information Disclosure
Action: Apply Patch
AI Analysis

Impact

Grav versions before 2.0.16 contain an incomplete default denylist in the Twig sandbox configuration. This flaw allows users who can edit pages to inject Twig code that calls config.get() or config.toArray(), giving them read access to system configuration secrets such as system.cache.redis.password when config_access is enabled. The vulnerability manifests as a confidentiality breach, exposing sensitive data stored in Grav's configuration.

Affected Systems

The vulnerability affects all Grav installations using any version prior to 2.0.16. The product is Grav by getgrav, and the issue is tied to the Twig sandbox component within the CMS. No specific patch versions other than 2.0.16+ provide remediation.

Risk and Exploitability

The CVSS score of 8.7 indicates high impact, while the EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog. The attack requires the attacker to have page‑edit permissions within a Grav site; from there they can add malicious Twig code to a page. Although the attack vector is likely local or web‑based depending on the site's access controls, the potential for disclosure of configuration secrets places it in a high‑risk category.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Grav to version 2.0.16 or later.
  • If upgrading immediately is not possible, revoke or restrict page‑edit permissions and disable config_access to block the use of config.get() and config.toArray() in templates.
  • Review and extend the Twig sandbox denylist to include all internal configuration keys such as system.cache.redis.password and any other sensitive settings.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 27 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 25 Aug 2026 02:00:00 +0000

Type Values Removed Values Added
Description Grav before 2.0.16 contains an incomplete default denylist in the Twig sandbox configuration that fails to block access to system configuration secrets. Attackers with page-edit permission can use config.get() or config.toArray() in Twig templates to retrieve sensitive values like system.cache.redis.password when config_access is enabled.
Title Grav before 2.0.16 Information Disclosure via Twig Sandbox
First Time appeared Getgrav
Getgrav grav
Weaknesses CWE-522
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Vendors & Products Getgrav
Getgrav grav
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-27T14:55:30.423Z

Reserved: 2026-08-19T20:34:19.724Z

Link: CVE-2026-76846

cve-icon Vulnrichment

Updated: 2026-08-27T14:55:26.059Z

cve-icon NVD

Status : Deferred

Published: 2026-08-25T02:16:51.743

Modified: 2026-08-31T20:52:56.343

Link: CVE-2026-76846

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-25T05:00:10Z

Weaknesses
  • CWE-522

    Insufficiently Protected Credentials