Skip to main content

Grav CMS CVE-2026-61450

| EUVDEUVD-2026-42903 HIGH
Code Injection (CWE-94)
2026-07-10 VulnCheck GHSA-xg8j-6m35-m6wr
7.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Obtain admin.pages or user/pages write access
  2. Delivery
    Author page with crafted Twig payload
  3. Exploit
    Call allow-listed grav.offsetGet('config')
  4. Execution
    Serialize Config via json_encode/print_r
  5. Persist
    Render page to expose secrets
  6. Impact
    Reuse leaked SMTP/API/DB credentials

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

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 Grav account with the admin.pages permission, or any means of writing files into user/pages, so the attacker must already be able to author page content that Grav will render through Twig. There are no additional non-default feature toggles needed - the vulnerable grav.offsetGet('config') accessor and the json_encode/print_r/yaml_encode filters are on the standard sandbox allowlist. The primary limiting factor is this low-privilege authentication requirement (CVSS PR:L): a fully external, unauthenticated attacker cannot exploit it, which confines realistic risk to instances that delegate page authoring to semi-trusted or potentially compromised accounts.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N) scores 7.1 and cleanly matches the described behavior: network-reachable, low complexity, requiring low privileges (a page-authoring account), no user interaction, and high confidentiality impact with no integrity or availability impact. This is a confidentiality-only, post-authentication issue - not a pre-auth RCE despite the 'RCE'/'Code Injection' tags, which describe the technique class (Twig injection) rather than achievable remote code execution here. No EPSS score, KEV listing, or SSVC decision was supplied; there is no evidence of active exploitation and no public PoC identified. The realistic priority is moderate-to-high for any Grav deployment that grants page-authoring rights to semi-trusted users, because leaked SMTP/API/DB secrets enable meaningful lateral movement and account takeover, but the required authenticated foothold limits mass, opportunistic exploitation.

Exploit ScenarioDerived

A user with an admin.pages account (for example, a delegated content editor or a compromised low-privilege author account) creates or edits a page containing a crafted Twig expression such as one that calls grav.offsetGet('config') and pipes the result through json_encode or print_r. When the page renders, the real Config object is serialized in the output, revealing SMTP credentials and plugin API keys, which the attacker then reuses against those external services. No public PoC has been identified, but the vendor advisory documents the exact bypass primitive.

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

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

Alert me

AnalysisAIv1 – Jul 10, 2026

Sensitive configuration exfiltration in Grav CMS before 2.0.2 lets an authenticated page author bypass the Twig sandbox and read the full config tree, including plugin SMTP credentials, API keys, and database passwords. The flaw is an incomplete fix for the earlier GHSA-j274-39qw-32c9 sandbox escape: the redacted 'config' facade is still trivially bypassed through the allow-listed grav.offsetGet('config') call. No public exploit has been identified at time of analysis, though the bypass technique is fully described in the vendor advisory.

RemediationAI

Vendor-released patch: upgrade to Grav 2.0.2 or later, which restores the sandbox method gate against the offsetGet-plus-serialization-filter bypass; see GHSA-mc5q-6hpj-rp7j (https://github.com/getgrav/grav/security/advisories/GHSA-mc5q-6hpj-rp7j). If immediate patching is not possible, restrict the admin.pages permission and filesystem write access to user/pages to fully trusted operators only, since any such user can trigger the leak - the trade-off is reduced delegation of content authoring. As a defense-in-depth step, rotate any secrets that page authors could already have exfiltrated (SMTP credentials, plugin API keys, and plugin/DB passwords) after upgrading, because the patch does not invalidate previously exposed data. Avoid storing high-value credentials in Grav plugin configs where a lower-tier CMS provider can hold them out of band.

Affected VersionsENISA

grav 0 <2.0.2

Affected Packages

composer getgrav/grav fix: 2.0.2
euvd grav fix: 2.0.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 PHP CMS that renders page content through Twig templates executed inside a sandbox intended to restrict which objects, methods, and filters page authors can invoke. To harden this boundary, Grav replaces the 'config' Twig variable with a redacted facade and removes Config::get and Config::toArray from the method allowlist. The root cause (CWE-94, code injection) is that the sandbox's method gate is incomplete: the allow-listed grav.offsetGet('config') accessor returns the genuine Config object from the dependency-injection container, and allow-listed serialization filters (json_encode, print_r, yaml_encode) then dump that object at the PHP level, entirely sidestepping the Twig method-invocation gate. The single affected product per CPE is cpe:2.3:a:getgrav:grav (all versions prior to 2.0.2).

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 (VulnCheck) PRIMARY 7.1 HIGH
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
vuln.today AI 6.5 MEDIUM

Network-reachable authoring endpoint (AV:N/AC:L) requires a low-privilege page-author account (PR:L), no interaction, and leaks secrets giving high confidentiality impact with no integrity or availability effect.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jul 10, 2026 - 16:16 EUVD

DescriptionCVE.org

Grav before 2.0.2 contains a Twig sandbox bypass that allows a page author (any admin.pages user, or anyone able to write to user/pages) to exfiltrate configuration secrets. Although the sandbox replaces the 'config' variable with a redacted facade and strips Config::get/toArray from the method allowlist, the raw container remains accessible via the allow-listed grav.offsetGet('config'), which returns the real Config object. Allow-listed object-dumping filters (json_encode, print_r, yaml_encode) then serialize that object at the PHP level without invoking the sandbox method gate, exposing the full config tree including plugin secrets such as SMTP credentials, API keys, and plugin DB credentials. This is an incomplete fix for GHSA-j274-39qw-32c9.

Executive ViewAI

Why It Matters

Grav CMS versions before 2.0.2 contain a configuration exfiltration vulnerability that allows authenticated page authors to extract critical credentials including database passwords, API keys, and email server credentials. Organizations operating affected deployments face immediate risk of credential compromise and potential lateral movement to connected systems. Remediation requires urgent access control changes and credential rotation.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict Twig template editing to system administrators only-remove page author edit capabilities if feasible; (2) Rotate all sensitive credentials immediately; (3) Enable file-integrity monitoring on configuration files; (4) Audit application logs for grav.offsetGet('config') method calls; (5) Implement network segmentation to limit blast radius if credentials are compromised.

Threat Intelligence Overview

EPSS Score
0.2%
Top 84% exploitable
Prevalence
Medium
popular open-source flat-file CMS, common but not ubiquitous deployment
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 No
EPSS 0.2%
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

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

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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