Skip to main content

Grav CMS EUVDEUVD-2026-26154

| CVE-2026-7317 LOW
Improper Input Validation (CWE-20)
2026-04-28 cna@vuldb.com
1.3
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with low-privilege Grav account
  2. Delivery
    Gain write access to FileCache directory
  3. Exploit
    Plant serialized PHP payload in cache file
  4. Execution
    Plugin or consumer calls FileCache::doGet()
  5. Persist
    PHP unserializes payload without HMAC check
  6. Impact
    Magic methods execute attacker-controlled logic

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

Exploitation requires two sequential preconditions: first, the attacker must achieve the ability to write or tamper with files in Grav's FileCache cache directory - confirmed by the CVSS 4.0 vector PR:L (low-privilege authentication required) and AC:H (high attack complexity); this write capability may come from authenticated CMS access with file-write permissions or from a chained secondary vulnerability. Second, the target Grav installation must have at least one plugin or consumer that invokes Framework\Cache\Adapter\FileCache rather than Grav's default Symfony FilesystemAdapter cache path, which is explicitly confirmed by the GHSA maintainer as not the default. The CVSS 4.0 vector (AV:N/AC:H/PR:L/UI:N) confirms network-reachable attack vector but rules out unauthenticated or low-complexity exploitation. Factors limiting exploitation: no default Grav configuration routes through the vulnerable FileCache adapter; no confirmed gadget chain for RCE beyond the deserialization primitive; and SSVC classifies this as non-automatable, meaning mass exploitation is implausible.

Impact

The CVSS 4.0 base score of 1.3 (AV:N/AC:H/PR:L/UI:N with all vulnerable-system impacts rated Low and no subsequent-system impact) sharply contrasts with the GHSA advisory's 'High' severity label - a discrepancy that warrants explicit attention. The GHSA High rating reflects the theoretical danger of uncontrolled deserialization, while the CVSS 4.0 correctly accounts for the AC:H prerequisite (cache file write access must be achieved first), the PR:L authentication requirement, and the fact that no confirmed gadget chain enabling full RCE has been demonstrated. EPSS at 0.05% (16th percentile) and SSVC classification of Automatable:no, Technical Impact:partial consistently indicate low near-term exploitation likelihood. The E:P supplemental metric in the CVSS 4.0 vector confirms that public PoC code exists, but the PoC (devsamuelsantiago/grav-cms-filecache-object-injection) only validates the deserialization primitive - it does not deliver a working exploit chain. This is not in CISA KEV. For most Grav deployments the real-world risk is low: exploitation requires cache directory write access AND a plugin using FileCache rather than the default Symfony adapter. For environments where these conditions apply, risk rises meaningfully despite the low CVSS score.

Exploit ScenarioDerived

An attacker who has obtained low-privilege authenticated access to a Grav CMS installation - or who has chained a separate file-write vulnerability - writes a serialized PHP payload to a file in Grav's FileCache cache directory. When a Grav plugin or downstream consumer subsequently calls FileCache::doGet() to retrieve the cached value, the crafted payload is passed directly to unserialize() with ['allowed_classes' => true], instantiating attacker-chosen PHP classes and triggering magic methods such as __wakeup or __destruct. Full RCE beyond primitive code execution would additionally require identifying a viable PHP gadget chain within Grav's dependency tree, which has not been publicly demonstrated as of this analysis.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 24, 2026

Insecure deserialization in Grav CMS FileCache exposes low-privilege authenticated users to PHP object injection through the FileCache::doGet() method, which calls unserialize() with ['allowed_classes' => true] on cache file contents without integrity verification. Versions 1.7.44 through 1.7.49.5 and 2.0.0-beta.0/beta.1 are affected; the component is not on Grav's default cache path but is reachable by plugins and downstream consumers. Publicly available exploit code exists demonstrating the deserialization primitive, though no active exploitation is recorded in CISA KEV and EPSS sits at 0.05%, reflecting negligible widespread exploitation risk.

RemediationAI

Vendor-released patch: 2.0.0-beta.2, available via Composer (composer require getgrav/grav:^2.0.0-beta.2). The fix in commit c66dfeb5f adds HMAC signing to every cache payload on write using Security::getNonceKey() and verifies the signature on read; tampered, forged, or pre-upgrade cache files are treated as cache misses and removed rather than deserialized. The new on-disk format is versioned (v2\n<expires>\n<key>\n<hmac>\n<serialized>), and existing caches rebuild transparently on first read - no manual cache wipe is required. Patch references: https://github.com/getgrav/grav/commit/c66dfeb5f and https://github.com/getgrav/grav/security/advisories/GHSA-gwfr-jfjf-92vv. If upgrading to 2.0.0-beta.2 is not immediately possible, operators should harden filesystem permissions on Grav's cache directory to prevent unauthorized file writes (e.g., restrict ownership to the web server process user and remove write access for any other accounts); this eliminates the cache-poisoning precondition but does not fix the underlying unsafe unserialize() call. Additionally, auditing and disabling any plugins that explicitly use Framework\Cache\Adapter\FileCache rather than the default Symfony adapter reduces the attack surface, though this may impact plugin functionality.

Affected VersionsENISA

CMS 2.0.0-beta.0
CMS 1.7.49.2
CMS 1.7.49.1
CMS 1.7.49.3
CMS 1.7.49.0
CMS 1.7.49.5
CMS 1.7.49.4
CMS 2.0.0-beta.1

Affected Packages

composer getgrav/grav fix: 2.0.0-beta.2
euvd cms no fix

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 CMS's Framework\Cache\Adapter\FileCache class (system/src/Grav/Framework/Cache/Adapter/FileCache.php) reads cached values in doGet() using PHP's native unserialize() with ['allowed_classes' => true], which permits full PHP class instantiation and triggers object magic methods (__wakeup, __destruct, __toString) on attacker-controlled input. The CVE attributes CWE-20 (Improper Input Validation), but the GHSA advisory GHSA-gwfr-jfjf-92vv more precisely identifies CWE-502 (Deserialization of Untrusted Data) as the root cause - the lack of data validation is a consequence of the unsafe deserialization pattern, not the primary weakness. An important architectural note from the GHSA maintainer: this FileCache adapter is not wired into Grav's primary cache path, which uses Symfony's FilesystemAdapter; however, it is reachable by plugins and downstream consumers, making exposure installation-dependent. CPE data confirms affected products as Grav CMS 1.7.44-1.7.49.5 and 2.0.0-beta.0/beta.1. The fix (commit c66dfeb5f) retrofits HMAC integrity using Security::getNonceKey(), versioning the on-disk cache format to prevent deserialization of unsigned or tampered payloads.

Know when PHP 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 (vuldb) PRIMARY 1.3 LOW
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 5.0 MEDIUM

Cache file poisoning requires low-privilege auth and high complexity; impacts are Low without a confirmed RCE gadget chain in Grav's dependencies.

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

Primary rating from Vendor (vuldb).

CVSS VectorVendor: vuldb

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

Lifecycle Timeline

2
CVSS changed
Apr 29, 2026 - 01:12 NVD
2.3 (LOW) 1.3 (LOW)
CVE Published
Apr 28, 2026 - 22:16 nvd
LOW 1.3

DescriptionCVE.org

A vulnerability was found in Grav CMS up to 1.7.49.5/2.0.0-beta.1. Affected by this vulnerability is the function FileCache::doGet of the file system/src/Grav/Framework/Cache/Adapter/FileCache.php of the component Cache Value Handler. The manipulation results in deserialization. The attack may be launched remotely. The attack requires a high level of complexity. The exploitation appears to be difficult. The exploit has been made public and could be used. Upgrading to version 2.0.0-beta.2 addresses this issue. The patch is identified as c66dfeb5f. The affected component should be upgraded.

Threat Intelligence Overview

EPSS Score
0.1%
Top 84% exploitable
Prevalence
Low
PHP flat-file CMS with niche adoption relative to WordPress or Drupal
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL 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 LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Low
Technical Impact
Partial

Priority Score

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

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy