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

High severity, published 2026-09-02. Update getgrav/grav to 2.0.7 or later: composer update getgrav/grav.

Canonical URL: https://buzzphp.com/security/ghsa-fj2p-qj2f-74v5 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high |
| Published | 2026-09-02 |
| Updated | 2026-09-02 |
| CVE | [CVE-2026-64850](https://nvd.nist.gov/vuln/detail/CVE-2026-64850) |
| GHSA | [GHSA-fj2p-qj2f-74v5](https://github.com/advisories/GHSA-fj2p-qj2f-74v5) |
| Weakness | CWE-94 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| getgrav/grav | < 2.0.7 | 2.0.7 |

## What to do

Update getgrav/grav to 2.0.7 or later: composer update getgrav/grav.

Check which version you run with `composer show getgrav/grav`, and every affected package with `composer audit`.

## About this advisory

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.

## Links

- [GHSA-fj2p-qj2f-74v5 on GitHub](https://github.com/advisories/GHSA-fj2p-qj2f-74v5)
- [CVE-2026-64850 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-64850)
- [All Composer security advisories](https://buzzphp.com/security)
