Skip to main content
EPSS 0.4%top 67%

CVE-2026-72698: Exposure of Sensitive Information to an Unauthorized Actor in getgrav grav

0
High
Published: 09/17/2026 (09/17/2026, 20:25:42 UTC)
Source: CVE Database V5
Vendor/Project: getgrav
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

getgrav

grav

Affected versions
>=0 <2.0.16
GitHub Actionsmore threats →ai
getgrav/grav
pkg:github/getgrav/grav
Affected versions
<2.0.16

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

AILast updated: 09/18/2026, 01:28:01 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses