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…

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

0
Critical
VulnerabilityCVE-2026-65008cvecve-2026-65008
Published: 07/21/2026 (07/21/2026, 11:39:57 UTC)
Source: CVE Database V5
Vendor/Project: getgrav
Product: grav

Description

Grav CMS 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 page frontmatter. When any user, including unauthenticated visitors, accesses the affected page, the injected code executes with the web server's privileges. The vulnerability is fixed in Grav version 2.0.7. No official patch or vendor advisory details are provided in the input data.

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/21/2026, 12:26:41 UTC

Technical Analysis

CVE-2026-65008 is a remote code execution vulnerability in Grav CMS 2.0.4, specifically in the Blueprint::dynamicData() method. The method improperly controls code generation by passing a Class::method callable string and its arguments directly to call_user_func_array() without an allowlist. Because the form plugin routes page frontmatter through this method, an authenticated user with admin.pages or api.pages.write permissions can inject a malicious callable directive into a page. This directive executes as the web server user whenever the page is accessed, including by unauthenticated visitors. The vulnerability is addressed in Grav 2.0.7.

Potential Impact

An attacker with authenticated access and specific permissions can achieve remote code execution on the server hosting Grav CMS 2.0.4. This allows execution of arbitrary code with the privileges of the web server user, potentially leading to full system compromise. The vulnerability can be triggered by any visitor accessing the maliciously crafted page, increasing the risk of widespread exploitation.

Mitigation Recommendations

Upgrade Grav CMS to version 2.0.7 or later, where this vulnerability is fixed. Since no official vendor advisory or patch link is provided, verify the upgrade through the official Grav project channels. Until patched, restrict permissions to admin.pages and api.pages.write to trusted users only to reduce risk.

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

Threat ID: 6a5f622e2a4a8d598918bded

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

Last enriched: 07/21/2026, 12:26:41 UTC

Last updated: 07/21/2026, 13:46:13 UTC

Views: 11

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