# Grav: FlexDirectory::dynamicDataField() executes arbitrary callables from blueprint data with no validation

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

Canonical URL: https://buzzphp.com/security/ghsa-c4wf-2xxc-68qm · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8.8) |
| Published | 2026-09-17 |
| Updated | 2026-09-17 |
| CVE | [CVE-2026-65608](https://nvd.nist.gov/vuln/detail/CVE-2026-65608) |
| GHSA | [GHSA-c4wf-2xxc-68qm](https://github.com/advisories/GHSA-c4wf-2xxc-68qm) |
| Weakness | CWE-470 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| getgrav/grav | >= 1.7.0, < 2.0.9 | 2.0.9 |

## What to do

Update getgrav/grav to 2.0.9 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

A missing validation check in Grav's Flex framework lets an account holding nothing but an ordinary object-create permission on a single Flex directory execute arbitrary shell commands on the server. Any authenticated user with create or update rights on a Flex-based directory (Flex Users, Flex Pages, Flex Objects, or any custom Flex type) can trigger it the moment a blueprint field anywhere in that directory carries a data-@: directive, since the code that resolves those directives calls calluserfuncarray() on attacker-influenced input with no restriction at all.

This is a bypass of GHSA-fj2p-qj2f-74v5, already patched in 2.0.7.

## Links

- [GHSA-c4wf-2xxc-68qm on GitHub](https://github.com/advisories/GHSA-c4wf-2xxc-68qm)
- [CVE-2026-65608 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-65608)
- [All Composer security advisories](https://buzzphp.com/security)
