Skip to main content

Grav Login Plugin CVE-2026-66400

| EUVDEUVD-2026-50324 MEDIUM
Insufficient Session Expiration (CWE-613)
2026-07-29 VulnCheck GHSA-x4cg-fxgx-67gm
6.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Identify Grav site with Remember Me enabled
  2. Delivery
    Capture victim Remember Me cookie via XSS or interception
  3. Exploit
    Present expired cookie to login endpoint
  4. Execution
    findTriplet() expiry check bypassed due to PHP type bug
  5. Persist
    Server grants authenticated session
  6. Impact
    Maintain 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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 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

grav 0 <3.8.13

Affected Packages

euvd grav fix: 3.8.13

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

Vendor (VulnCheck) PRIMARY 6.3 MEDIUM
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
vuln.today AI 4.8 MEDIUM

Requires prior cookie capture raising AC:H; no privileges needed to replay token; limited confidentiality and integrity impact, no availability effect.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

Lifecycle Timeline

1
Patch available
Jul 29, 2026 - 15:02 EUVD

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

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Low
flat-file PHP CMS with niche adoption compared to WordPress or Drupal
Data Quality
6 sources
Confidence: High

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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