Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.8%top 45%

CVE-2026-65008: Improper Control of Generation of Code ('Code Injection') in getgrav grav

0
Critical
Published: 09/01/2026 (09/01/2026, 00:00:00 UTC)
Source: CVE Database V5
Vendor/Project: getgrav
Product: grav

Description

Grav version 2.0.4 contains a critical remote code execution vulnerability in the Blueprint::dynamicData() function. This flaw allows an authenticated user with admin.pages or api.pages.write permissions to inject malicious callable code into a page. When the page is accessed by any user, including unauthenticated visitors, the injected code executes with the web server's privileges. The vulnerability is fixed in Grav version 2.0.7.

CVSS v4.0

Score 9.3critical

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

GitHub Actionsmore threats →ai
getgrav/grav
pkg:github/getgrav/grav
Affected versions
<2.0.7 >=2.0.4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 11:23:42 UTC

Technical Analysis

CVE-2026-65008 is a remote code execution vulnerability in Grav 2.0.4 caused by improper control of code generation in the Blueprint::dynamicData() method. This method passes a Class::method callable string and its arguments directly to call_user_func_array() without an allowlist, enabling an authenticated user with specific permissions to plant malicious callable directives in page frontmatter. These directives execute as the web-server user when the page is accessed, potentially compromising the server. The issue is resolved in version 2.0.7.

Potential Impact

An attacker with authenticated access and admin.pages or api.pages.write permissions can execute arbitrary code on the server with web-server privileges by injecting malicious callable code into a page. This can lead to full server compromise when the page is accessed by any user, including unauthenticated visitors.

Mitigation Recommendations

Upgrade Grav to version 2.0.7 or later, where this vulnerability is fixed. Until the upgrade is applied, restrict access to accounts with admin.pages or api.pages.write permissions to trusted users only. Patch status is not explicitly confirmed in the vendor advisory, but the vulnerability is fixed in 2.0.7 according to the description.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-07-21T11:32:54.897Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Indicators of Compromise

Exploit Source Code

Exploit Code

Exploit code for Grav CMS 2.0.7 - RCE

#!/usr/bin/env python3
# Exploit Title: Grav CMS  2.0.7 - Remote Code Execution 
# Date: 2026-07-27
# Exploit Author: zer0dayf
# Vendor Homepage: https://getgrav.org/
# Software Link: https://github.com/getgrav/grav
# Version: Grav CMS < 2.0.7
# Tested on: Ubuntu 22.04 / PHP 8.2
# CVE : CVE-2026-65008

"""
CVE-2026-65008 - Grav CMS < 2.0.7 Authenticated RCE
via Blueprint::dynamicData() + arrayFilterRecursive trampoline

Lab / authorized testing only.
"""

import argparse
import re
import sys
imp
... (6638 more characters)
Code Length: 7,138 characters

Threat ID: 6a5f622e2a4a8d598918bded

Added to database: 07/21/2026, 12:12:30 UTC

Last enriched: 07/30/2026, 11:23:42 UTC

Last updated: 09/02/2026, 10:52:11 UTC

Views: 68

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses