BuzzPHP
LightDarkSystem

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

High severity. Published 2 September 2026. Update getgrav/grav to 2.0.7 or later: composer update getgrav/grav.

Which versions are affected?

PackageAffected versionsFixed in
getgrav/grav (opens in a new tab)< 2.0.72.0.7

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show getgrav/grav
composer audit

Advisory details

SeverityHigh
Published
Updated
CVECVE-2026-64850 (opens in a new tab)
GHSAGHSA-fj2p-qj2f-74v5 (opens in a new tab)
WeaknessCWE-94

What the advisory says

Summary An account with the admin.pages permission (or api.pages.write) can run shell commands on the server. The command executes whenever anyone — including an unauthenticated visitor — opens the page.

Details Blueprint::dynamicData() (system/src/Grav/Common/Data/Blueprint.php:426) passes a Class::method string and its arguments straight to calluserfuncarray() with no allowlist. The form plugin runs page frontmatter through this path (form/classes/Form.php:432), so a page author controls the input.

Source: GHSA-fj2p-qj2f-74v5 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories