{"id":"CVE-2026-65608","summary":"Grav before 2.0.9 Remote Code Execution via FlexDirectory","details":"Grav versions \u003e= 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.","aliases":["GHSA-c4wf-2xxc-68qm"],"modified":"2026-07-25T04:14:50.127958825Z","published":"2026-07-23T11:42:15.534Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-470"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65608.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65608.json"},{"type":"ADVISORY","url":"https://github.com/getgrav/grav/security/advisories/GHSA-c4wf-2xxc-68qm"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65608"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/grav-before-remote-code-execution-via-flexdirectory"},{"type":"FIX","url":"https://github.com/getgrav/grav/commit/fae9e1bf2c40ce0b50d0dfce647aaa1d22f98969"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/getgrav/grav","events":[{"introduced":"916b7cfc44d4d1e153cf5752c908124abe3167ef"},{"fixed":"694f1dae06d9061bbf0669c4291e3b206f998d71"}],"database_specific":{"extracted_events":[{"introduced":"1.7.0"},{"fixed":"2.0.9"}],"source":"AFFECTED_FIELD"}}],"versions":["2.0.8","2.0.7","2.0.6","2.0.5","2.0.4","2.0.3","2.0.2","2.0.1","1.7.53","1.7.52","1.7.51","1.7.39.1","1.7.39","1.7.38","1.7.37.1","1.7.37","1.7.36","1.7.35","1.7.34","1.7.33","1.7.32","1.7.31","1.7.30","1.7.29.1","1.7.29","1.7.28","1.7.27.1","1.7.27","1.7.26.1","1.7.26","1.7.25","1.7.24","1.7.23","1.7.22","1.7.21","1.7.20","1.7.19","1.7.18","1.7.17","1.7.16","1.7.15","1.7.14","1.7.13","1.7.12","1.7.10","1.7.9","1.7.8","1.7.7","1.7.6","1.7.5","1.7.4","1.7.3","1.7.1","1.7.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-65608.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}