{"id":"GHSA-pp9r-ppc4-25w4","title":"Duplicate Advisory: Grav: FlexDirectory::dynamicDataField() executes arbitrary callables from blueprint data with no validation","summary":"Duplicate Advisory: Grav: FlexDirectory::dynamicDataField() executes arbitrary callables from blueprint data with no validation","severity":"high","cvss":8.8,"cwe":["CWE-470"],"vendor":"getgrav","product":"getgrav/grav","ecosystem":"composer","affected":["getgrav/grav >= 1.7.0, < 2.0.9"],"published":"2026-07-23","updated":"2026-09-17","sourceUpdated":"2026-09-17T17:15:07Z","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-pp9r-ppc4-25w4","references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-c4wf-2xxc-68qm"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65608"},{"url":"https://github.com/getgrav/grav/commit/fae9e1bf2c40ce0b50d0dfce647aaa1d22f98969"},{"url":"https://www.vulncheck.com/advisories/grav-before-remote-code-execution-via-flexdirectory"},{"url":"https://github.com/advisories/GHSA-pp9r-ppc4-25w4"}],"tags":["ghsa","composer"],"ingestedAt":"2026-09-17T17:23:30.692Z","slug":"GHSA-pp9r-ppc4-25w4","body":"## Overview\n\n### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-c4wf-2xxc-68qm. This link is maintained to preserve external references.\n\n### Original Description\nGrav 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.\n\n## Affected packages\n\n- `getgrav/grav >= 1.7.0, < 2.0.9`\n\n## Remediation\n\nRefer to the advisory for the patched release.","depth":"twilight","depthScore":48,"depthScoreParts":{"impact":48.4,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}