CVE-2026-65008 Details
Description
Grav 2.0.4 (fixed in 2.0.7) contains a remote code execution vulnerability in Blueprint::dynamicData() (system/src/Grav/Common/Data/Blueprint.php), which passes a Class::method callable string and its arguments directly to call_user_func_array() without any allowlist. Because the form plugin routes page frontmatter through this path, an authenticated account with the admin.pages (or api.pages.write) permission can plant a malicious callable directive in a page. The command then executes as the web-server user whenever anyone — including an unauthenticated visitor — accesses the page.
A remote code execution vulnerability exists in Grav version 2.0.4, specifically within the Blueprint::dynamicData() method. This vulnerability arises because the method directly passes a Class::method callable string and its arguments to call_user_func_array() without any allowlist. The issue is exploitable by authenticated users with admin.pages or api.pages.write permissions, who can inject a malicious callable directive into a page's frontmatter. Once injected, the command executes as the web server user whenever the page is accessed, including by unauthenticated visitors.
Users are advised to update Grav to version 2.0.7 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 21, 2026CISA-ADP
Assessed Jul 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/getgrav/grav/security/advisories/GHSA-fj2p-qj2f-74v5 | CISA-ADP | AdvisoryExploitVendor |
| https://github.com/getgrav/grav/security/advisories/GHSA-fj2p-qj2f-74v5 | [email protected] | AdvisoryExploitVendor |
| https://www.vulncheck.com/advisories/grav-before-remote-code-execution-via-blueprint-dynamicdata | [email protected] | AdvisoryVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Grav | < 2.0.7 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 22, 2026 | CVE Modified | CISA-ADP |
| Jul 21, 2026 | New CVE Received | [email protected] |
Volerion