Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Grav site with Remember Me enabled
-
DeliveryCapture victim Remember Me cookie via XSS or interception
-
ExploitPresent expired cookie to login endpoint
-
ExecutionfindTriplet() expiry check bypassed due to PHP type bug
-
PersistServer grants authenticated session
-
ImpactMaintain persistent CMS access beyond timeout
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V7 - Session Management Session expiration enforcement
|
| Exploitation Conditions | Exploitation requires two specific preconditions: first, the target Grav site must have the Remember Me feature enabled in the Login Plugin (this is a configurable option, not the default in all deployments); second, the attacker must already possess a valid Remember Me cookie captured from an authenticated user via a separate attack vector such as XSS, network interception, or physical access. Without a previously obtained token, this vulnerability cannot be exploited remotely. Exploitation is limited to whatever CMS access level the hijacked account holds - it does not provide privilege escalation beyond the victim's role. Grav sites running over HTTPS with HttpOnly and Secure cookie flags materially reduce the token capture risk, though they do not fix the underlying expiry bypass. |
| Impact | The CVSS 4.0 score of 6.3 reflects a moderate-severity vulnerability with meaningful real-world constraints. AV:N confirms network-accessible exploitation, but AC:H and AT:P together indicate that successful exploitation requires specific preconditions - most critically, the attacker must already possess a valid Remember Me cookie obtained through a prior compromise vector (e.g., session hijacking, XSS-based cookie theft, network interception over HTTP). This is not a vulnerability that enables initial access; it amplifies the persistence value of a stolen credential. EPSS data is not provided in the source intelligence. No CISA KEV listing means active exploitation is not confirmed. The limited impact metrics (VC:L/VI:L/VA:N) suggest the blast radius is bounded by the privilege level of the hijacked account. The core risk is that defenders relying on session timeout as a compensating control for a compromised Remember Me token will find that control is entirely non-functional on unpatched instances. |
| Exploit ScenarioDerived | An attacker who previously obtained a victim's Grav Remember Me cookie - via a network sniff on an HTTP-only deployment, a prior XSS attack, or physical access to a browser - replays that cookie against the Grav login endpoint after the configured timeout period has elapsed. Because the timestamp expiry check in findTriplet() always evaluates incorrectly due to the PHP type comparison bug, the server accepts the stale token and issues an authenticated session, granting the attacker persistent access to the Grav CMS backend for as long as the token record exists in storage. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 29, 2026
Persistent session hijacking in Grav Login Plugin before 3.8.13 allows any attacker holding a captured Remember Me cookie to authenticate indefinitely, bypassing the configured session timeout. The root cause is a PHP type-comparison bug in TokenStorage.php's findTriplet() method: the expiry check compares an array value against a scalar timestamp, a comparison that always evaluates incorrectly in PHP, effectively nullifying the token lifetime enforcement. No active exploitation confirmed (not in CISA KEV), and no public exploit code has been identified at time of analysis, but the flaw is straightforward to weaponize given a captured cookie.
RemediationAI
Upgrade the Grav Login Plugin to version 3.8.13 or later, which corrects the array-to-scalar type comparison in TokenStorage.php's findTriplet() method. Vendor details are published at the GitHub advisory GHSA-mj78-8gwc-vxjj. If immediate patching is not possible, a targeted workaround is to disable the Remember Me feature entirely in Grav's Login Plugin configuration, which eliminates the vulnerable code path at the cost of requiring users to re-authenticate on every session. Additionally, invalidating all existing Remember Me tokens by rotating the application's session secret will render any previously captured cookies useless. Sites running over HTTP should treat this as a higher priority given that cookies could be intercepted in transit; enforcing HTTPS with Secure cookie flags limits the exposure surface for token capture.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in 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 (CPE: cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*) that implements Remember Me authentication via a TokenStorage class in its Login Plugin. The vulnerability is rooted in CWE-613 (Insufficient Session Expiration): the findTriplet() method in TokenStorage.php retrieves a stored token structure and attempts to validate the timestamp against the configured expiry window, but due to PHP's type juggling behavior, comparing an array (the stored token structure) to a scalar (a Unix timestamp or integer) produces an unexpected boolean result that never correctly identifies the token as expired. This means every Remember Me token issued becomes permanently valid regardless of the site's configured session duration. The flaw is in the plugin layer, not Grav core, but the CPE string maps to the parent getgrav:grav product.
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:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Requires prior cookie capture raising AC:H; no privileges needed to replay token; limited confidentiality and integrity impact, no availability effect.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
Grav Login Plugin versions before 3.8.13 contain an insufficient session expiration vulnerability in TokenStorage.php where the findTriplet() method fails to properly validate Remember Me token timestamps. Attackers with a captured Remember Me cookie can authenticate indefinitely instead of the configured timeout period, as the expiry check compares an array to a scalar value which always evaluates incorrectly in PHP.
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-50324
GHSA-x4cg-fxgx-67gm
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB