Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain content editor credentials
-
DeliveryAuthenticate to Grav CMS admin panel
-
ExploitCraft page content with Twig dot-notation config traversal
-
ExecutionTrigger page render in sandboxed context
-
PersistRead exposed configuration arrays
-
ImpactExfiltrate secrets such as cache credentials
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK
2 techniques across 2 tactics: Collection, Discovery The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated session with page-content edit permissions in Grav CMS - specifically the ability to save and render Twig template expressions within page content. This is a non-default privilege for anonymous or public users; it is standard for any account granted the content editor role. The bypass operates specifically within the sandboxed Twig render context; attackers without edit access to pages cannot trigger the vulnerable code path. The config_denied_paths configuration must be present as the intended (but bypassable) restriction mechanism. Exploitation is limited by: (1) the requirement for valid editor-level credentials (PR:L), (2) the need to submit and render Twig content, and (3) the attack produces only confidentiality impact - no code execution or data modification is achievable via this vector alone. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N) places this as a network-reachable, low-complexity vulnerability requiring low-privilege access, with high confidentiality impact and no integrity or availability impact. The PR:L requirement is the primary mitigating factor - exploitation is gated on possessing authenticated content editor credentials, ruling out unauthenticated or opportunistic mass exploitation. No EPSS data was supplied in the input, and this CVE is absent from the CISA KEV catalog, suggesting no confirmed widespread active exploitation at time of analysis. No public POC has been identified. The practical risk is highest in multi-tenant or multi-author Grav deployments where editors are not fully trusted - a configuration common in agencies, community sites, or delegated publishing workflows - and lowest in single-operator installs where the site owner is also the sole editor. The straightforward exploitation technique (standard Twig dot notation) means a knowledgeable attacker with editor access could reliably extract secrets without needing custom tooling. The missing EPSS score and absence of KEV listing collectively point toward a low probability of opportunistic exploitation, but the high confidentiality impact on credential material makes it a meaningful priority for affected deployment patterns. |
| Exploit ScenarioDerived | An attacker obtains content editor credentials for a Grav CMS site - through phishing, credential stuffing, or insider access - and logs into the admin panel. They create or edit a page whose content contains a Twig template expression using dot notation to traverse the system or site configuration arrays, bypassing config_denied_paths, and the rendered output reveals values such as cache service passwords or API keys. No public POC has been identified, but the technique requires only familiarity with Twig templating syntax and editor-level session access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 25, 2026
Configuration secret disclosure in Grav CMS before 2.0.16 allows authenticated content editors to extract sensitive values - including cache credentials - from system, site, and theme configuration arrays via the Twig templating engine. The sandboxed Twig render context fails to filter these configuration objects, permitting attackers to bypass the intended config_denied_paths restrictions using standard dot-notation syntax. No public exploit code or CISA KEV listing has been identified at time of analysis, though the CVSS 4.0 score of 7.1 reflects a high confidentiality impact for installations where editor access is not fully trusted.
RemediationAI
Upgrade Grav CMS to version 2.0.16 or later, which addresses the incomplete filtering of system, site, and theme configuration arrays within sandboxed Twig renders. The vendor advisory detailing the fix is at https://github.com/getgrav/grav/security/advisories/GHSA-p597-crqc-m349. If an immediate upgrade is not feasible, restrict page-content edit permissions to only fully trusted users, eliminating the PR:L attack surface entirely - note this may disrupt workflows in multi-author deployments. As a further compensating control, audit existing Twig page templates for dot-notation access to configuration objects to identify potential prior exploitation. Regardless of patch timing, rotate any secrets stored in Grav configuration (particularly cache service credentials) if untrusted users have previously held editor access, since there is no reliable way to determine whether exploitation occurred prior to patching.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Grav CMS is a flat-file PHP content management system that uses the Twig templating engine for page rendering. Twig supports a sandboxing mode intended to restrict what template authors can access, but this vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) reveals that the sandbox implementation does not properly filter the system, site, and theme configuration arrays before they become accessible within the render context. The config_denied_paths mechanism, which is the intended control for blocking access to sensitive configuration keys, can be circumvented because it does not apply to raw array traversal via Twig dot notation. This allows a template author to enumerate and read configuration values that would otherwise be restricted. The affected product is identified by CPE cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*, covering all Grav CMS releases prior to 2.0.16.
Know when Grav gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-accessible via authenticated editor session (PR:L); scope unchanged; exclusively confidentiality impact from configuration secret disclosure, no integrity or availability effect.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
Grav CMS versions prior to 2.0.16 allow authenticated content editors to extract sensitive system credentials and configuration secrets through Twig template injection. Organizations using Grav for sites with multiple contributor accounts face credential exposure risk, potentially enabling lateral movement or unauthorized access to backend systems and services.
Restrict content editor role permissions to exclude Twig template access; segment sensitive credentials outside configuration files into environment variables or dedicated secret management systems; implement detailed audit logging and monitoring for unusual configuration-related activity; conduct review of historical editor access logs for indicators of credential exposure.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Related Vulnerabilities in Grav CMS Access Control and Traversal Flaws
View all 9Server-side template injection (SSTI) in Grav (getgrav/grav) prior to 1.8.0-beta.27 allows an authenticated attacker hol
Broken access control in Grav CMS (CWE-285) before 1.8.0-beta.27 lets an authenticated editor-level user escalate their
A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug
Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a
GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv
Remote code execution in Grav CMS 2.0.4 (fixed in 2.0.7) lets an authenticated user holding the admin.pages or api.pages
Remote code execution in Grav CMS before 2.0.15 allows attackers holding page-edit or blueprint-config privileges to wri
Vertical privilege escalation in Grav CMS before 2.0.14 lets a delegated administrator holding only the admin.users perm
Stored cross-site scripting in Grav CMS before 2.0.15 lets authenticated editors smuggle JavaScript event handlers past
Server-side request forgery (SSRF) in Grav CMS versions prior to 1.7.49.5 allows remote authenticated attackers to make
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, Grav CMS is vulnerable to a Server-Side Template Injection (S
Remote code execution in Grav CMS before 2.0.13 allows authenticated low-privilege users to plant and execute arbitrary
EUVD-2026-65212
GHSA-mw85-cjh9-8hp7
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB