Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain page-edit account access
-
DeliveryAuthenticate to Grav admin panel
-
ExploitCraft Twig template with config.get() call
-
ExecutionRender page to extract stored secrets
-
ImpactUse harvested Redis credentials for lateral movement
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V6 - Authentication Credential protection in transit/storage
|
| Exploitation Conditions | Two conditions must be simultaneously present: (1) the attacker must possess a Grav account with page-edit permission - a non-default delegated role required for multi-user or contributor-based deployments - and (2) the |
| Impact | The provided CVSS 4.0 vector assigns PR:N (no privileges required), which directly contradicts the CVE description's explicit requirement for page-edit permission - this discrepancy should be verified against the vendor advisory before using the published score for prioritization decisions. Even a mid-sized municipal IT team in malbork running Grav with delegated content editors and a Redis backend should treat this as a meaningful priority, since exposure of Redis credentials enables lateral movement well beyond the CMS itself. Despite the headline 8.7 score, real-world exploitability is bounded by two concurrent prerequisites: an authenticated account with page-edit rights and the non-default |
| Exploit ScenarioDerived | An attacker who holds a content-editor account on a Grav deployment with |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 25, 2026
Information disclosure in Grav CMS before 2.0.16 enables authenticated users holding page-edit permission to retrieve sensitive system configuration values - including Redis passwords and other stored credentials - by invoking config.get() or config.toArray() within Twig templates. The root cause is an incomplete default denylist in the Twig sandbox configuration that fails to block access to the config object when the config_access feature is enabled. No public exploit has been identified and the vulnerability is not confirmed actively exploited at time of analysis.
RemediationAI
Upgrade Grav CMS to version 2.0.16 or later, which ships a corrected Twig sandbox denylist that blocks template-level access to the config object's disclosure methods; full details are in the vendor advisory at https://github.com/getgrav/grav/security/advisories/GHSA-xjw5-q542-3vmr. If an immediate upgrade is not feasible, disable the config_access feature in Grav's configuration - this removes the prerequisite condition and eliminates the attack path, though it will break any legitimate workflows that rely on config-aware Twig templates, which should be audited before disabling. Independently of patching, review and restrict page-edit role assignments to only fully trusted users, removing that permission from external contributors or any account that should not access configuration data. If this vulnerability was present in a publicly accessible or multi-editor deployment, treat stored credentials - especially Redis passwords visible via system.cache.redis.password - as potentially compromised and rotate them promptly.
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 is a flat-file PHP CMS that uses the Twig templating engine with a sandboxed execution environment intended to restrict what page editors can access or execute. The sandbox relies on a denylist - a set of blocked functions, classes, and variables - to prevent template authors from reading arbitrary application internals. The vulnerability arises because this denylist is incomplete: it does not block access to Grav's global config object or its methods config.get() and config.toArray(). When the config_access feature is enabled in the Grav configuration, these methods become reachable from within Twig templates, exposing any configuration key including credentials such as system.cache.redis.password. CWE-522 (Insufficiently Protected Credentials) accurately describes the root cause class: credentials stored in application configuration are accessible to insufficiently restricted actors due to an inadequate access control boundary. The affected product is identified by CPE cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*, covering all 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:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Requires authenticated page-edit permission (PR:L); network-reachable via web interface; confidentiality impact only with no integrity or availability effect.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
Grav CMS versions before 2.0.16 contain an information disclosure vulnerability that allows authenticated users with page-editing permissions to extract sensitive system credentials, including database and cache passwords, from server configuration. This directly compromises the security of backend systems that Grav CMS interfaces with and could enable account takeover or lateral movement within infrastructure. Organizations running affected versions must prioritize remediation to prevent unauthorized access to critical infrastructure credentials.
No vendor-released patch identified at time of analysis. Interim mitigations include: disable the config_access feature in Twig template sandboxing immediately; restrict page-editing permissions to a minimal set of trusted users with administrative oversight; implement network-level controls to limit lateral movement if backend credentials are compromised; and maintain continuous monitoring of Grav access logs for suspicious template editing activity.
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-65220
GHSA-crrc-vpp2-f5x7
NVD
CVE.org
EPSS
Exploit-DB