Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with page-edit account
-
DeliveryEdit or create Grav page with malicious Twig template
-
ExploitCall offsetGet('password') on target User object
-
ExecutionCapture hashed credential and 2FA secret from rendered output
-
PersistCrack password hash offline
-
ImpactLog in as victim user bypassing 2FA
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V6 - Authentication Credential protection in transit/storage
|
| Exploitation Conditions | Exploitation requires an authenticated session with page-edit permissions in the Grav CMS - this is not a default anonymous or low-privilege role but a content-authoring role that must be explicitly granted by an administrator. The vulnerable code path is triggered only when a Twig template containing offsetGet() or offsetExists() calls targeting User object fields is rendered. Sites where all users with page-edit access are fully trusted are not at meaningful risk. The limiting factors are: authenticated access required, page-edit role specifically required, and the attacker must be able to create or modify page content that is subsequently rendered. Unauthenticated exploitation is not possible based on the vulnerability description. |
| Impact | The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N, score 8.7) conflicts directly with the CVE description, which states exploitation requires page-edit permissions - a non-default, authenticated role. PR:N is incorrect for this vulnerability; the real privilege requirement is at minimum PR:L and likely closer to PR:H depending on how Grav site-level roles are provisioned. This discrepancy significantly inflates the apparent severity: an accurate vector would reflect authenticated, low-complexity exploitation rather than unauthenticated access. Adjusting for the actual authentication prerequisite, the effective risk is moderate for sites where untrusted users hold page-edit roles. No EPSS score was provided and no KEV listing exists, meaning broad automated exploitation has not been observed. The confidentiality impact is genuine and high - bcrypt hashes and TOTP secrets can enable offline cracking and 2FA bypass - but the attacker must already have a meaningful foothold in the CMS. |
| Exploit ScenarioDerived | An attacker with a legitimate or compromised Grav account holding page-edit permissions creates or edits a page containing a malicious Twig template that calls offsetGet('password') or offsetGet('twofa_secret') on the current or target User object. The sandboxed template renders the sensitive field values, which the attacker captures via the page output. The attacker then runs the hashed password through an offline cracking tool and, upon recovery, logs in as the victim, potentially including administrative accounts. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 25, 2026
Credential extraction in Grav CMS before 2.0.16 allows authenticated users with page-edit permissions to read hashed passwords and two-factor authentication secrets from User objects via insufficiently filtered Twig template sandbox methods. The allow-listed offsetGet() and offsetExists() methods on User objects expose sensitive fields that should be restricted within the sandboxed template context, enabling offline password cracking and subsequent authentication bypass. No public exploit has been identified at time of analysis, but the exploit technique is straightforward for any attacker holding page-edit rights.
RemediationAI
Upgrade Grav to version 2.0.16 or later, which applies field-level filtering to the allow-listed offsetGet() and offsetExists() methods in the Twig sandbox, preventing access to sensitive User fields. The fix is documented in the GitHub security advisory at https://github.com/getgrav/grav/security/advisories/GHSA-3jhr-mxmx-38cx. If immediate upgrade is not possible, restrict or revoke page-edit permissions from all untrusted or semi-trusted user accounts as a compensating control; this eliminates the attacker's ability to inject Twig templates, though it may limit legitimate contributor workflows. There is no known workaround that preserves page-edit functionality while blocking offsetGet() abuse short of patching.
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 Twig for templating with an explicit sandbox allowing only certain object methods. The sandbox allow-list includes offsetGet() and offsetExists() on Grav User objects - standard ArrayAccess interface methods - but does not filter which fields callers may request via those methods. CWE-522 (Insufficiently Protected Credentials) is the root cause: sensitive User fields (bcrypt-hashed passwords, TOTP 2FA secrets) are stored in the User object and are reachable through the same interface as innocuous fields like display name. Affected products are identified by CPE cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*, covering all Grav versions 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 access (PR:L); network-reachable CMS endpoint (AV:N); no integrity or availability impact; full confidentiality loss via credential extraction.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Grav before 2.0.16 allows sandboxed Twig templates to access sensitive User fields through allow-listed offsetGet() and offsetexists() methods that lack field filtering. Attackers with page-edit permissions can call offsetGet() on User objects to extract hashed passwords and 2FA secrets, enabling offline password cracking and authentication bypass.
Executive ViewAI
Grav CMS versions before 2.0.16 allow page editors to extract and crack user passwords, enabling direct account takeover and bypass of authentication controls. Organizations using Grav for content management face credential compromise risk, particularly where page-editing roles are broadly assigned or insufficiently monitored. This threatens both regular user accounts and administrative access across affected systems.
Restrict page-editing permissions to essential personnel with documented business justification; enforce multi-factor authentication for all page-editor accounts; implement comprehensive audit logging of page modifications, user access, and authentication events; conduct quarterly role recertification to validate ongoing access requirements; establish mandatory administrative approval workflows for all content changes before publication; deploy real-time monitoring alerts for page modification activities and suspicious authentication patterns.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
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-65219
GHSA-3jhr-mxmx-38cx
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB