{"id":"CVE-2026-65608","published":"2026-07-23T11:42:15Z","modified":"2026-10-08T15:23:58Z","title":"Grav before 2.0.9 Remote Code Execution via FlexDirectory","vendor":"getgrav","product":"grav","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01116,"percentile":0.66858,"provenance":"source"},"cwes":[{"id":"CWE-470","name":"Use of Externally-Controlled Input to Select Classes or Code"}],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-c4wf-2xxc-68qm","tags":["vendor-advisory"]},{"url":"https://github.com/getgrav/grav/commit/fae9e1bf2c40ce0b50d0dfce647aaa1d22f98969","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/grav-before-remote-code-execution-via-flexdirectory","tags":["third-party-advisory"]}],"priority":{"score":19.5,"factors":[{"name":"EPSS percentile","points":13.37},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"getgrav","affectedVersions":[{"vendor":"getgrav","product":"grav","versions":[">= 1.7.0, < 2.0.9"]}],"fixedVersions":[{"vendor":"getgrav","product":"grav","versions":["2.0.9"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-07-23T18:00:17.857895Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"getgrav/grav","vulnerableRanges":[">=1.7.0, <2.0.9"],"patched":["2.0.9"],"from":["GHSA-c4wf-2xxc-68qm"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-48244","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-62672","published":"2026-08-19","fixed":"2.0.4","kev":false},{"cve":"CVE-2026-62673","published":"2026-08-19","fixed":"2.0.4","kev":false},{"cve":"CVE-2026-64850","published":"2026-08-19","fixed":"2.0.7","kev":false},{"cve":"CVE-2026-65608","published":"2026-07-23","fixed":"2.0.9","kev":false},{"cve":"CVE-2026-69088","published":"2026-08-03","fixed":"2.0.11","kev":false,"link":{"from":"CVE-2026-65608","to":"CVE-2026-69088","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:getgrav/grav","fromFixed":"2.0.9","toFixed":"2.0.11","daysApart":11}]}},{"cve":"CVE-2026-69089","published":"2026-08-03","fixed":"2.0.11","kev":false},{"cve":"CVE-2026-72819","published":"2026-08-14","fixed":"2.0.13","kev":false}],"package":"Packagist:getgrav/grav"}}