CVE-2026-64850 PUBLISHED

Grav: Remote code execution via unrestricted callable in Blueprint::dynamicData()

Assigner: GitHub_M
Reserved: 20.07.2026 Published: 19.08.2026 Updated: 19.08.2026

Grav is a file-based Web platform. Prior to 2.0.7, Grav Blueprint::dynamicData() in system/src/Grav/Common/Data/Blueprint.php sends an editor-controlled Class::method provider and arguments to call_user_func_array() without rejecting dangerous callback parameters. An account with admin.pages or api.pages.write can use Grav\Common\Utils::arrayFilterRecursive() as a trampoline with system as the callback, place a command in page frontmatter, and execute that command as the web server user when the page is viewed. This issue is fixed in version 2.0.7.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 8.7

Product Status

Vendor getgrav
Product grav
Versions
  • Version < 2.0.7 is affected

References

Problem Types

  • CWE-94: Improper Control of Generation of Code ('Code Injection') CWE