Skip to content
OpenAdvisories
Critical · 9.8 CVE-2026-56700 EUVD-2026-40452GHSA-58cg-x8gx-6hg3GHSA-vj3m-2g9h-vm4p

Grav - Multiple Remote Code Execution Vulnerabilities via Unsafe Unserialize and Command Injection

Published Jun 30, 2026 · Updated Oct 8, 2026 · Assigned by VulnCheck

Description

Grav CMS before 2.0.0-beta.2 contains multiple code-execution vulnerabilities. Three unsafe unserialize() calls - in Scheduler\JobQueue, Framework\Cache\Adapter\FileCache, and Session - deserialize untrusted data without restricting allowed classes, enabling PHP object injection and, via a gadget chain, arbitrary code execution where an attacker controls the serialized input. Additionally, InstallCommand's git clone operation passes the branch, url, and path parameters into a shell command without escaping, allowing OS command injection via plugin/theme installation (which requires admin access). A Twig security blocklist bypass (server-side template injection) is also present. The issues are fixed in 2.0.0-beta.2.

Affected products

VendorProductAffectedFixed
Grav Grav < 2.0.0-beta.2 2.0.0-beta.2

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist getgrav/grav < 2.0.0-beta.2 2.0.0-beta.2 GHSA-vj3m-2g9h-vm4p

References