Skip to main content

Grav CMS CVE-2026-76846

| EUVDEUVD-2026-65220 HIGH
Insufficiently Protected Credentials (CWE-522)
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Obtain page-edit account access
  2. Delivery
    Authenticate to Grav admin panel
  3. Exploit
    Craft Twig template with config.get() call
  4. Execution
    Render page to extract stored secrets
  5. Impact
    Use 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 config_access feature must be explicitly enabled in the Grav configuration, as it is not on by default. Without config_access enabled, the config object is not exposed to Twig templates regardless of denylist gaps. Exploitation is therefore not possible against single-operator installations, read-only public sites, or deployments where page-edit rights are not granted to untrusted parties. The primary threat model is insider threat, compromised editor credentials, or misconfigured multi-tenant Grav instances where contributor roles are delegated broadly.

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 config_access feature being enabled. No EPSS data was provided, the vulnerability is absent from CISA KEV, and no public exploit code is referenced in the available intelligence - these signals together indicate a lower urgency than the CVSS score alone suggests, primarily relevant to multi-editor or contributor-facing deployments rather than single-operator installations.

Exploit ScenarioDerived

An attacker who holds a content-editor account on a Grav deployment with config_access enabled inserts {{ config.get('system.cache.redis.password') }} into a Twig template for a page they control. Upon previewing or publishing the page, the Twig sandbox fails to block the call and the Redis password is returned in the rendered HTML. The attacker can then authenticate directly to the Redis service to read cached data, forge session tokens, or pivot further into the backend infrastructure. No public exploit code is confirmed at time of analysis.

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

grav 0 <2.0.16

Affected Packages

composer getgrav/grav fix: 2.0.16
euvd grav fix: 2.0.16

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

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

Requires authenticated page-edit permission (PR:L); network-reachable via web interface; confidentiality impact only 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:P/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
None
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

2
Patch available
Aug 25, 2026 - 03:16 EUVD
CVE Published
Aug 25, 2026 - 01:30 cve.org
HIGH 8.7

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Low
niche flat-file CMS, limited enterprise or cloud-scale footprint
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
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