CVE-2026-65008 PUBLISHED

Grav before 2.0.7 Remote Code Execution via Blueprint dynamicData

Assigner: VulnCheck
Reserved: 21.07.2026 Published: 21.07.2026 Updated: 21.07.2026

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.

Metrics

CVSS 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
CVSS Score: 9.3

Product Status

Vendor getgrav
Product grav
Versions Default: unaffected
  • affected from 0 to 2.0.7 (excl.)
  • Version 2.0.7 is unaffected

Credits

  • YuvalMil reporter
  • MatiHub25 reporter
  • LeonKaya reporter

References

Problem Types

  • Improper Control of Generation of Code ('Code Injection') CWE