Skip to main content

Grav CMS CVE-2026-44738

| EUVDEUVD-2026-29135 HIGH
Information Exposure (CWE-200)
2026-05-11 GitHub_M GHSA-j274-39qw-32c9
7.7
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with admin.pages credentials
  2. Delivery
    Access page editor in Grav admin panel
  3. Exploit
    Insert {{ config.toArray() }} Twig expression
  4. Execution
    Save and render page
  5. Persist
    Extract dumped secrets from HTML response
  6. Impact
    Use 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

grav < 2.0.0-rc.2

Affected Packages

composer getgrav/grav fix: 2.0.0-rc.2
euvd grav fix: 2.0.0-rc.2

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

Vendor (GitHub_M) PRIMARY 7.7 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch available
May 11, 2026 - 18:17 EUVD
CVE Published
May 11, 2026 - 15:47 nvd
HIGH 7.7

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 91% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Grav

View all
CVE-2025-66294 HIGH POC
8.7 Dec 01

Server-side template injection (SSTI) in Grav (getgrav/grav) prior to 1.8.0-beta.27 allows an authenticated attacker hol

CVE-2025-66301 HIGH POC
8.6 Dec 01

Broken access control in Grav CMS (CWE-285) before 1.8.0-beta.27 lets an authenticated editor-level user escalate their

CVE-2025-50286 HIGH POC
8.1 Aug 06

A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug

CVE-2024-34082 CRITICAL POC
9.9 May 15

Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a

CVE-2021-47812 CRITICAL POC
9.8 Jan 16

GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv

CVE-2026-65008 CRITICAL POC
9.3 Jul 21

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

CVE-2026-75827 CRITICAL POC
9.3 Aug 18

Remote code execution in Grav CMS before 2.0.15 allows attackers holding page-edit or blueprint-config privileges to wri

CVE-2026-75837 CRITICAL POC
9.3 Aug 18

Vertical privilege escalation in Grav CMS before 2.0.14 lets a delegated administrator holding only the admin.users perm

CVE-2026-75828 CRITICAL POC
9.3 Aug 18

Stored cross-site scripting in Grav CMS before 2.0.15 lets authenticated editors smuggle JavaScript event handlers past

CVE-2025-66844 CRITICAL POC
9.1 Dec 15

Server-side request forgery (SSRF) in Grav CMS versions prior to 1.7.49.5 allows remote authenticated attackers to make

CVE-2025-66299 HIGH POC
8.8 Dec 01

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

CVE-2026-72819 HIGH POC
8.7 Aug 14

Remote code execution in Grav CMS before 2.0.13 allows authenticated low-privilege users to plant and execute arbitrary

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy