CVE-2026-72698: Exposure of Sensitive Information to an Unauthorized Actor in getgrav grav
Description
CVE-2026-72698 is a vulnerability in Grav CMS (getgrav/grav) versions prior to 2.0.16 where sensitive configuration arrays (system, site, theme) are exposed to unauthorized actors during sandboxed Twig template rendering. The issue arises because these arrays are passed as raw PHP arrays into the sandboxed environment without filtering, allowing page content editors or attackers with page edit access to read sensitive data such as Redis passwords. This occurs despite the sandbox's security policy, which only restricts object method and property access, not array key access. The vulnerability is confirmed in Grav CMS version 2.0.15 and earlier.
CVSS v4.0
Score 7.1high
Affected software
getgrav
grav
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
In Grav CMS, the Twig template engine's sandboxed rendering process replaces the 'config' variable with a filtered facade to prevent secret exfiltration. However, the raw 'system', 'site', and 'theme' configuration arrays are also passed into the sandboxed environment unfiltered. Twig's sandbox security policy does not restrict access to array keys, only to object methods and properties, so sensitive data nested in these arrays can be accessed directly in sandboxed page content renders. This allows an attacker with page content edit permissions to read sensitive configuration values, such as cache Redis passwords, even when the documented 'config' variable is empty in sandboxed renders. The vulnerability affects Grav CMS versions before 2.0.16.
Potential Impact
An attacker with the ability to edit page content or inject Twig code in Grav CMS can access sensitive configuration information including secrets such as Redis cache passwords. This exposure occurs even when sandboxed rendering is enabled and the 'config' variable is restricted. The vulnerability can lead to unauthorized disclosure of sensitive data, potentially facilitating further attacks or system compromise. The CVSS 4.0 score is 7.1 (high severity), reflecting network attack vector, low attack complexity, no privileges required beyond page edit access, and high confidentiality impact.
Mitigation Recommendations
A fix is available in Grav CMS version 2.0.16 that addresses this issue by properly filtering or removing the raw 'system', 'site', and 'theme' arrays from the sandboxed Twig render variables. Users should upgrade to version 2.0.16 or later to remediate this vulnerability. Until upgraded, restrict page content editing permissions to trusted users only to reduce risk. No other mitigations are documented or effective because the vulnerability stems from the core template sandbox implementation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-10T13:02:20.829Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a8cf57bacd9273b498428a0
Added to database: 08/25/2026, 01:52:59 UTC
Last enriched: 09/18/2026, 01:28:01 UTC
Last updated: 10/07/2026, 06:48:18 UTC
Views: 46
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.