CVE-2026-65008: Improper Control of Generation of Code ('Code Injection') in getgrav grav
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.
AI Analysis
Technical Summary
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.
CVE-2026-65008: Improper Control of Generation of Code ('Code Injection') in getgrav 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
Affected software
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.