Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privilege Grav account
-
DeliveryGain write access to FileCache directory
-
ExploitPlant serialized PHP payload in cache file
-
ExecutionPlugin or consumer calls FileCache::doGet()
-
PersistPHP unserializes payload without HMAC check
-
ImpactMagic 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 |
| 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 |
| 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
Cache file poisoning requires low-privilege auth and high complexity; impacts are Low without a confirmed RCE gadget chain in Grav's dependencies.
Primary rating from Vendor (vuldb).
CVSS VectorVendor: vuldb
Lifecycle Timeline
2DescriptionCVE.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
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
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.
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
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
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
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
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
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
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-26154
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB