---
id: CVE-2026-56700
title: Grav CMS before 2.0.0-beta.2 contains multiple code-execution vulnerabilities
summary: >-
  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 allo…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-78
  - CWE-502
vendor: Grav
product: Grav
affected:
  - Grav < 2.0.0-beta.2
published: '2026-06-30'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T16:17:22.387'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-56700'
references:
  - url: 'https://github.com/getgrav/grav/security/advisories/GHSA-vj3m-2g9h-vm4p'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/grav-multiple-remote-code-execution-vulnerabilities-via-unsafe-unserialize-and-command-injection
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-07-01T14:39:52.805678Z'
epss: 0.02528
epssPercentile: 0.84416
ingestedAt: '2026-10-08T16:52:14.694Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
