Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with admin.pages credentials
-
DeliveryAccess page editor in Grav admin panel
-
ExploitInsert {{ config.toArray() }} Twig expression
-
ExecutionSave and render page
-
PersistExtract dumped secrets from HTML response
-
ImpactUse leaked credentials for lateral movement to external services
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 | Attacker must possess valid credentials for a Grav CMS account with admin.pages role explicitly granted. This role is typically assigned to content editors and authors but does NOT require full administrator privileges or access to system configuration files. The vulnerability affects default Grav installations with standard Twig processing enabled for page content - no non-default plugins or configuration changes are required. Exploitation requires the ability to create or edit page content through the Grav admin panel (port 80/443 access to /admin route). Limiting factors: network access to the Grav admin interface (often restricted by IP allowlisting in production), valid authentication credentials (PR:L in CVSS), and the target site must store sensitive credentials in Grav config files rather than environment variables or external secret managers. Sites using least-privilege role assignment that restrict admin.pages to fully trusted internal staff are not practically exploitable. |
| Impact | Real-world risk is High for multi-user Grav installations where admin.pages role is delegated to content editors or external contributors. The CVSS 7.7 score accurately reflects the attack profile: network-based (AV:N), low complexity (AC:L), requires only low-privilege authentication (PR:L), and achieves high confidentiality impact with scope change (S:C). The scope change metric is critical - it means a content editor can extract secrets for AWS S3 buckets, SendGrid SMTP, or OAuth apps managed by site owners, enabling lateral movement to external services. Attack complexity is genuinely low because Twig expressions are a documented feature for content authors; no exploit development is required. However, exploitation requires specific conditions: the attacker must have valid credentials with admin.pages role and access to page editing functions. This limits exposure compared to unauthenticated RCE but remains severe for platforms using role-based access control to separate content creation from infrastructure management. EPSS score unavailable and no CISA KEV listing suggests exploitation has not reached widespread automated scanning or criminal adoption. Absence of confirmed POC in public repositories reduces immediate risk for unpatched systems but does not eliminate it - the attack technique is trivial to reproduce from the description. Priority should be High for any Grav instance with multiple administrative users or guest content contributors. |
| Exploit ScenarioDerived | A freelance content editor with admin.pages access to a corporate Grav site creates a new page titled 'Test Draft' and embeds {{ config.toArray() }} in the page body. Upon saving and previewing the page, the rendered HTML displays the site's entire configuration array, including the SMTP password for the company's SendGrid account and AWS access keys for S3 media storage. The editor copies these credentials and uses them to access the company's email infrastructure and cloud storage, exfiltrating customer data and sending phishing emails from legitimate company domains. No public exploit code is required - the attack uses documented Twig templating features available in the Grav admin interface. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 11, 2026
Information disclosure in Grav CMS versions prior to 2.0.0-rc.2 allows authenticated users with admin.pages role to extract all site configuration secrets via Twig sandbox bypass. Attackers can invoke config.toArray() from page content to dump SMTP passwords, AWS keys, OAuth client secrets, and API tokens into rendered HTML. CVSS 7.7 (High) with confirmed scope change reflects cross-tenant impact in multi-admin environments. EPSS data not available; no confirmed active exploitation or public POC identified at time of analysis.
RemediationAI
Upgrade to Grav CMS version 2.0.0-rc.2 or later, which implements stricter Twig sandbox controls to block config.toArray() and similar introspection methods from page content. The vendor-released patch is available via the GitHub security advisory at https://github.com/getgrav/grav/security/advisories/GHSA-j274-39qw-32c9. For environments unable to immediately upgrade to a release candidate, implement compensating controls: revoke admin.pages role from untrusted or external users and limit page editing to fully trusted administrators only (trade-off: reduces collaborative content workflows). Rotate all exposed secrets (SMTP passwords, API keys, OAuth tokens) found in config files after applying the patch, as any previously created page containing config.toArray() may have leaked credentials to server logs or cached HTML. Review HTTP access logs and page edit history for suspicious Twig expressions matching config method calls to identify potential exploitation. Note that disabling Twig processing globally breaks core Grav functionality and is not a viable mitigation.
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 CMS using Twig templating with sandbox security controls to isolate user-supplied templates from sensitive runtime data. The vulnerability stems from an overly permissive Twig sandbox allow-list (CWE-200: Exposure of Sensitive Information) that fails to block method calls on the global config object. Users with admin.pages role - intended for content editing, not full system administration - can embed Twig expressions like {{ config.toArray() }} in page bodies. When processed, this method serializes the entire merged configuration tree, including environment variables, plugin credentials, and third-party service tokens, directly into the HTML response. The scope change (S:C in CVSS vector) indicates that secrets belonging to other administrative contexts or integrated services are exposed beyond the attacker's granted privileges. CPE cpe:2.3:a:getgrav:grav identifies the affected product as the Grav core platform itself, not a specific plugin.
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
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Grav is a file-based Web platform. Prior to 2.0.0-rc.2, the Twig sandbox allow-list permits any user with the admin.pages role to call config.toArray() from within a page body, dumping the entire merged site configuration - including all plugin secrets (SMTP passwords, AWS keys, OAuth client secrets, API tokens) - into the rendered HTML. No administrator privileges are required. This vulnerability is fixed in 2.0.0-rc.2.
Executive ViewAI
Grav CMS versions before 2.0.0-rc.2 contain an authenticated information disclosure vulnerability that allows admin-privileged users to extract sensitive configuration secrets (SMTP credentials, AWS keys, OAuth tokens, API keys) through Twig template manipulation, creating insider threat and credential exposure risks in multi-tenant deployments where multiple administrators have page-editing access.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict admin.pages role to minimal set of trusted administrators; (2) Implement mandatory peer review of all page content changes before publishing; (3) Rotate all secrets stored in Grav configuration (SMTP passwords, API keys, OAuth credentials) immediately and monitor for unauthorized access; (4) Disable Twig template execution in user-editable content if possible via configuration; (5) Monitor rendered HTML output for unexpected config.toArray() calls or credential patterns; (6) Segregate admin accounts with page-editing privileges from those with system administration access.
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.
Server-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-29135
GHSA-j274-39qw-32c9
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB