Deserialization of Untrusted Data in Grav CMS - CVE-2026-7317

 

Deserialization of Untrusted Data in Grav CMS - CVE-2026-7317

Published: May 5, 2026


Vulnerability identifier: #VU130084
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-7317
CWE-ID: CWE-502
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: Grav CMS
Affected software:
Grav CMS

Detailed vulnerability description

The vulnerability allows a local user to execute arbitrary code.

The vulnerability exists due to deserialization of untrusted data in FileCache::doGet() in system/src/Grav/Framework/Cache/Adapter/FileCache.php when processing tampered cache files. A local user can poison or modify a cache file with crafted serialized data to execute arbitrary code.

The vulnerable class is reachable by plugin and downstream consumers rather than Grav's main cache path.


How to mitigate CVE-2026-7317

Install security update from vendor's website.

Sources