CVE-2026-65608

published 23 Jul 2026 · updated 8 Oct 2026

Grav before 2.0.9 Remote Code Execution via FlexDirectory

8.8HighCVSS 8.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 2.0.9.

Grav versions >= 1.7.0 and before 2.0.9 contain a remote code execution vulnerability. FlexDirectory::dynamicDataField() resolves blueprint data-*@: directives by calling call_user_func_array() on attacker-influenced input, validating only that the target is callable (is_callable()) without restricting dangerous functions such as exec, system, passthru, or shell_exec. Because FlexDirectory registers this handler for every Flex directory, it bypasses the validation added to Blueprint::dynamicData() in 2.0.7 (GHSA-fj2p-qj2f-74v5). Any authenticated user with create or update permission on any Flex-based directory (Flex Users, Flex Pages, Flex Objects, or custom Flex types) can execute arbitrary shell commands on the server.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
getgrav>=1.7.0 <2.0.92.0.9

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-65608 severity on Zeptric[![CVE-2026-65608](https://zeptric.io/badge/cve/CVE-2026-65608.svg)](https://zeptric.io/cve/CVE-2026-65608)