CVE-2026-65608
Grav versions >= 1.7.0 and before 2.0.9 contain a remote code …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/getgrav/grav/commit/fae9e1bf2c40ce0b50d0dfce647aaa1d22f98969
- github.com/getgrav/grav/security/advisories/GHSA-c4wf-2xxc-68qm
- www.vulncheck.com/advisories/grav-before-remote-code-execution-via-flexdirectory
- nvd.nist.gov/vuln/detail/CVE-2026-65608
- github.com/advisories/GHSA-c4wf-2xxc-68qm
- nvd.nist.gov/vuln/detail/CVE-2026-65608
- cve.org/CVERecord?id=CVE-2026-65608
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.