{"id":"CVE-2026-64850","published":"2026-08-19T15:58:02Z","modified":"2026-08-19T17:51:53Z","title":"Grav: Remote code execution via unrestricted callable in Blueprint::dynamicData()","vendor":"getgrav","product":"grav","tier":"tail","description":{"text":"Grav is a file-based Web platform. Prior to 2.0.7, Grav Blueprint::dynamicData() in system/src/Grav/Common/Data/Blueprint.php sends an editor-controlled Class::method provider and arguments to call_user_func_array() without rejecting dangerous callback parameters. An account with admin.pages or api.pages.write can use Grav\\Common\\Utils::arrayFilterRecursive() as a trampoline with system as the callback, place a command in page frontmatter, and execute that command as the web server user when the page is viewed. This issue is fixed in version 2.0.7.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00467,"percentile":0.32588,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-fj2p-qj2f-74v5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/getgrav/grav/commit/acffa34cbb0787fee87c609e0d6289e904fee33c","tags":["x_refsource_MISC"]},{"url":"https://github.com/getgrav/grav/releases/tag/2.0.7","tags":["x_refsource_MISC"]}],"priority":{"score":12.6,"factors":[{"name":"EPSS percentile","points":6.52},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"getgrav","affectedVersions":[{"vendor":"getgrav","product":"grav","versions":["< 2.0.7"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-08-19T17:51:47.291941Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"getgrav/grav","vulnerableRanges":["<2.0.7"],"patched":["2.0.7"],"from":["GHSA-fj2p-qj2f-74v5"],"provenance":"source"}],"summary":{"text":"Grav, a file-based web platform, has a code injection flaw in Blueprint::dynamicData() in system/src/Grav/Common/Data/Blueprint.php, where editor-supplied callback names and arguments are passed to call_user_func_array() without validation. An attacker with network access and a low-privileged account holding admin.pages or api.pages.write permissions, without requiring user interaction, can abuse this to execute arbitrary commands as the web server user by placing a command in page frontmatter that runs when the page is viewed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:36Z"},"euvd":{"id":"EUVD-2026-62549","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-getgrav-grav-cve-2024-28117","parents":[{"from":"CVE-2026-65008","to":"CVE-2026-64850","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-fj2p-qj2f-74v5","via":"reference","url":"https://github.com/getgrav/grav/security/advisories/GHSA-fj2p-qj2f-74v5"},{"kind":"similar","provenance":"machine","score":0.56,"basis":"same product + CWE + description similarity"}]},{"from":"CVE-2026-69088","to":"CVE-2026-64850","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Data/Blueprint.php"],"commits":["https://github.com/getgrav/grav/commit/acffa34cbb0787fee87c609e0d6289e904fee33c","https://github.com/getgrav/grav/commit/446d7f8f255918c8234634fe1dc2c9c77a0c673e"],"basis":"shared function","functions":["dynamicData"]}]},{"from":"CVE-2026-11430","to":"CVE-2026-64850","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Data/Blueprint.php"],"commits":["https://github.com/getgrav/grav/commit/694f1dae06d9061bbf0669c4291e3b206f998d71","https://github.com/getgrav/grav/commit/acffa34cbb0787fee87c609e0d6289e904fee33c"],"basis":"shared function","functions":["dynamicData"]}]},{"from":"CVE-2026-72820","to":"CVE-2026-64850","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Data/Blueprint.php"],"commits":["https://github.com/getgrav/grav/commit/acffa34cbb0787fee87c609e0d6289e904fee33c","https://github.com/getgrav/grav/commit/ad9709f865b09b68798fb1ac375b484a8cc1d892"],"basis":"shared function","functions":["dynamicData"]}]},{"from":"CVE-2026-72831","to":"CVE-2026-64850","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Data/Blueprint.php"],"commits":["https://github.com/getgrav/grav/commit/acffa34cbb0787fee87c609e0d6289e904fee33c","https://github.com/getgrav/grav/commit/ad9709f865b09b68798fb1ac375b484a8cc1d892"],"basis":"shared function","functions":["dynamicData"]}]},{"from":"CVE-2026-72832","to":"CVE-2026-64850","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Data/Blueprint.php"],"commits":["https://github.com/getgrav/grav/commit/acffa34cbb0787fee87c609e0d6289e904fee33c","https://github.com/getgrav/grav/commit/ad9709f865b09b68798fb1ac375b484a8cc1d892"],"basis":"shared function","functions":["dynamicData"]}]}],"packageHistory":[{"cve":"CVE-2026-62669","published":"2026-08-19","fixed":"2.0.4","kev":false},{"cve":"CVE-2026-62672","published":"2026-08-19","fixed":"2.0.4","kev":false,"link":{"from":"CVE-2026-62672","to":"CVE-2026-64850","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:getgrav/grav","fromFixed":"2.0.4","toFixed":"2.0.7","daysApart":0}]}},{"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},{"cve":"CVE-2026-69089","published":"2026-08-03","fixed":"2.0.11","kev":false}],"package":"Packagist:getgrav/grav"}}