Skip to content
Heist/ feed
High

Grav before 2.0.9 Remote Code Execution via FlexDirectory

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-65608

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-65608

grav

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "getgrav",
    "product": "grav",
    "versions": [
      {
        "status": "affected",
        "version": "1.7.0",
        "lessThan": "2.0.9",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "2.0.9",
        "versionType": "semver"
      }
    ],
    "packageURL": "pkg:composer/getgrav/grav",
    "defaultStatus": "unaffected"
  }
]
Related CVEs
CVE-2026-65608

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#12796 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement