CVE-2026-65608
published high CVSS 4.0 · 8.7Grav before 2.0.9 Remote Code Execution via FlexDirectory
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| getgrav | — | grav1.7.0 to < 2.0.9 (affected · semver) · 2.0.9 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| getgrav | grav | 1.7.0 to < 2.0.9 (affected · semver)2.0.9 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-470 Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
References
3- Patch Commit https://github.com/getgrav/grav/commit/fae9e1bf2c40ce0b50d0dfce647aaa1d22f98969
- GitHub Security Advisory (GHSA-c4wf-2xxc-68qm) https://github.com/getgrav/grav/security/advisories/GHSA-c4wf-2xxc-68qm
- VulnCheck Advisory: Grav before 2.0.9 Remote Code Execution via FlexDirectory https://www.vulncheck.com/advisories/grav-before-remote-code-execution-via-flexdirectory
Provider assertions
2VulnCheck · cna
Grav before 2.0.9 Remote Code Execution via FlexDirectory
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6dcfc701f9f767e08ea90ac3ec4353c79d79a7ed83ac2d3c6409199536d9c2b4
- Ingested
- 09 Oct 2026, 16:32:33 UTC
- Source record
- Official CVE record