{"id":"CVE-2026-65608","revision":"2841dd90be84496f9b981b3df31bfc82","records":[{"revision":"2841dd90be84496f9b981b3df31bfc82","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-65608","aliases":[],"title":"Grav before 2.0.9 Remote Code Execution via FlexDirectory","description":"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.","state":0,"publishedAt":"2026-07-23T11:42:15.534+00:00","modifiedAt":"2026-10-08T15:23:58.814+00:00","affected":[{"ecosystem":"Vendor product","name":"grav","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"getgrav\",\n                    \"product\": \"grav\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"versions\": [\n                        {\n                            \"version\": \"1.7.0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"2.0.9\"\n                        },\n                        {\n                            \"version\": \"2.0.9\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"packageURL\": \"pkg:composer/getgrav/grav\"\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"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","score":8.7,"severity":"HIGH"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"severity":"HIGH"}],"references":["https://github.com/getgrav/grav/security/advisories/GHSA-c4wf-2xxc-68qm","https://github.com/getgrav/grav/commit/fae9e1bf2c40ce0b50d0dfce647aaa1d22f98969","https://www.vulncheck.com/advisories/grav-before-remote-code-execution-via-flexdirectory"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-65608","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-65608","identifiers":["CVE-2026-65608"]},"retained":false,"historicalAffected":[]}],"coverage":[]}