CVE-2026-56700
Deferred Deferred - Pending Action

PHP Object Injection and Code Execution in Grav CMS

Vulnerability report for CVE-2026-56700, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-30

Last updated on: 2026-07-01

Assigner: 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-30
Last Modified
2026-07-01
Generated
2026-07-21
AI Q&A
2026-07-01
EPSS Evaluated
2026-07-19
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
grav cms to 2.0.0-beta.2 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
CWE-502 The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

Grav CMS versions before 2.0.0-beta.2 have multiple critical security flaws. These include three unsafe unserialize() calls that deserialize untrusted data without restricting allowed classes, which enables PHP object injection and arbitrary code execution through a gadget chain. Additionally, the InstallCommand's git clone operation improperly handles branch, url, and path parameters by passing them into a shell command without escaping, allowing OS command injection during plugin or theme installation, which requires admin access. There is also a Twig security blocklist bypass that leads to server-side template injection. All these issues are fixed in version 2.0.0-beta.2.

Detection Guidance

Detection of CVE-2026-56700 involves identifying the presence of vulnerable Grav CMS versions prior to 2.0.0-beta.2 and monitoring for exploitation attempts targeting unsafe unserialize() calls, OS command injection, or server-side template injection.

You can start by checking the installed Grav CMS version with a command like:

  • grep 'version' /path/to/grav/system/defines.php

To detect exploitation attempts, monitor web server logs for suspicious serialized PHP objects or unusual parameters in plugin/theme installation requests that might exploit the git clone command injection.

Example commands to search logs for suspicious unserialize payloads or command injection attempts include:

  • grep -r --include='*.log' 'O:' /var/log/apache2/
  • grep -r --include='*.log' 'git clone' /var/log/apache2/

Additionally, scanning for files or requests containing serialized PHP objects or unusual shell commands in plugin/theme installation paths can help detect exploitation.

Ultimately, upgrading Grav CMS to version 2.0.0-beta.2 or later is the recommended mitigation.

Impact Analysis

This vulnerability can have severe impacts including allowing attackers to execute arbitrary code on the server running Grav CMS. Through PHP object injection and OS command injection, attackers can gain control over the system, potentially leading to data breaches, unauthorized access, and full system compromise. The server-side template injection can also be exploited to execute malicious code. These impacts can disrupt service, compromise sensitive data, and damage the integrity and availability of the affected system.

Compliance Impact

The vulnerability in Grav CMS allows remote code execution through unsafe unserialize() calls, OS command injection, and server-side template injection. Such critical security flaws can lead to unauthorized access, data breaches, and manipulation of sensitive information.

These risks can impact compliance with common standards and regulations like GDPR and HIPAA, which require protection of personal and sensitive data against unauthorized access and breaches.

Exploitation of these vulnerabilities could result in exposure or alteration of protected data, potentially leading to non-compliance with data protection and privacy regulations.

Mitigation Strategies

The vulnerability is fixed in Grav CMS version 2.0.0-beta.2. Immediate mitigation steps include upgrading Grav CMS to version 2.0.0-beta.2 or later.

Additionally, restrict access to the admin interface to trusted users only, as some attacks require admin access.

Avoid installing untrusted plugins or themes, since the vulnerability includes OS command injection via plugin/theme installation.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-56700. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart