Grav: Incomplete callable validation in blueprint dynamic fields allows arbitrary static method invocation and file disclosure
### Summary Grav CMS's blueprint dynamic-field callable guard can be bypassed with a fully-qualified `Class::method` string, letting an account with only page-editing rights (`admin.pages`, not super-admin) plant a directive in a page's form-field frontmatter that invokes an arbitrary public static PHP method with attacker-controlled arguments. Using built-in gadget methods this yields, at minimum, arbitrary reading of any server-readable file (disclosed to anonymous visitors of the crafted page) and arbitrary creation/copying of files and directories under the web-server account. ### Details `Blueprint::isSafeDynamicCall()` (`system/src/Grav/Common/Data/Blueprint.php`, method around line 488) is meant to block dangerous callables named in a blueprint's dynamic-field directives (`data-*@`). It only consults its dangerous-name denylist when the callable string does **not** contain `::`: ```php if (is_string($function) && !str_contains($function, '::') && Utils::isDangerousFunction($function)) { return false; } ``` Any callable string containing `::` — i.e. every `Class::method` static call — skips the check entirely and is passed to `call_user_func_array()` at `Blueprint::dynamicData()` (`Blueprint.php`, around line 461) and `FlexDirectory::dynamicDataField()` (`system/src/Grav/Framework/Flex/FlexDirectory.php`, around line 937). There is no allowlist restricting which classes or methods may be invoked this way; only the call's *arguments* are (separately) scanned for smuggled
- Products
- getgrav/grav
- Affected versions
- 2.0.10, 2.0.7, 2.0.8, 2.0.9
- Fixed versions
- 2.0.11
- CVEs
- CVE-2026-69088
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 14:49 UTC · Revision 1
Source evidence
Grav: Incomplete callable validation in blueprint dynamic fields allows arbitrary static method invocation and file disclosure
core-osv · Original sourcePublished 17 Sept 2026, 17:16 UTC
### Summary Grav CMS's blueprint dynamic-field callable guard can be bypassed with a fully-qualified `Class::method` string, letting an account with only page-editing rights (`admin.pages`, not super-admin) plant a directive in a page's form-field frontmatter that invokes an arbitrary public static PHP method with attacker-controlled arguments. Using built-in gadget methods this yields, at minimum, arbitrary reading of any server-readable file (disclosed to anonymous visitors of the crafted page) and arbitrary creation/copying of files and directories under the web-server account. ### Details `Blueprint::isSafeDynamicCall()` (`system/src/Grav/Common/Data/Blueprint.php`, method around line 488) is meant to block dangerous callables named in a blueprint's dynamic-field directives (`data-*@`). It only consults its dangerous-name denylist when the callable string does **not** contain `::`: ```php if (is_string($function) && !str_contains($function, '::') && Utils::isDangerousFunction($function)) { return false; } ``` Any callable string containing `::` — i.e. every `Class::method` static call — skips the check entirely and is passed to `call_user_func_array()` at `Blueprint::dynamicData()` (`Blueprint.php`, around line 461) and `FlexDirectory::dynamicDataField()` (`system/src/Grav/Framework/Flex/FlexDirectory.php`, around line 937). There is no allowlist restricting which classes or methods may be invoked this way; only the call's *arguments* are (separately) scanned for smuggled
osv:GHSA-7pgq-cr25-xvc8
getgrav/grav
Fixed versions: 2.0.11
Complete source record
{
"id": "903097647d7551c6517b17796b9a6b69903a9603f98cc2e287d73e96862628ad",
"url": "https://osv.dev/vulnerability/GHSA-7pgq-cr25-xvc8",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Grav: Incomplete callable validation in blueprint dynamic fields allows arbitrary static method invocation and file disclosure",
"summary": "### Summary Grav CMS's blueprint dynamic-field callable guard can be bypassed with a fully-qualified `Class::method` string, letting an account with only page-editing rights (`admin.pages`, not super-admin) plant a directive in a page's form-field frontmatter that invokes an arbitrary public static PHP method with attacker-controlled arguments. Using built-in gadget methods this yields, at minimum, arbitrary reading of any server-readable file (disclosed to anonymous visitors of the crafted page) and arbitrary creation/copying of files and directories under the web-server account. ### Details `Blueprint::isSafeDynamicCall()` (`system/src/Grav/Common/Data/Blueprint.php`, method around line 488) is meant to block dangerous callables named in a blueprint's dynamic-field directives (`data-*@`). It only consults its dangerous-name denylist when the callable string does **not** contain `::`: ```php if (is_string($function) && !str_contains($function, '::') && Utils::isDangerousFunction($function)) { return false; } ``` Any callable string containing `::` — i.e. every `Class::method` static call — skips the check entirely and is passed to `call_user_func_array()` at `Blueprint::dynamicData()` (`Blueprint.php`, around line 461) and `FlexDirectory::dynamicDataField()` (`system/src/Grav/Framework/Flex/FlexDirectory.php`, around line 937). There is no allowlist restricting which classes or methods may be invoked this way; only the call's *arguments* are (separately) scanned for smuggled",
"evidence": "osv:GHSA-7pgq-cr25-xvc8",
"products": [
{
"name": {
"value": "getgrav/grav",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.0.11",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": [
{
"value": "2.0.10",
"evidence": "/affected/0/versions"
},
{
"value": "2.0.7",
"evidence": "/affected/0/versions"
},
{
"value": "2.0.8",
"evidence": "/affected/0/versions"
},
{
"value": "2.0.9",
"evidence": "/affected/0/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "GHSA-7pgq-cr25-xvc8",
"aliases": [
"CVE-2026-69088",
"GHSA-7pgq-cr25-xvc8"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.0.7"
},
{
"fixed": "2.0.11"
}
]
}
],
"package": {
"name": "getgrav/grav",
"purl": "pkg:composer/getgrav/grav",
"ecosystem": "Packagist"
},
"versions": [
"2.0.10",
"2.0.7",
"2.0.8",
"2.0.9"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-7pgq-cr25-xvc8/GHSA-7pgq-cr25-xvc8.json",
"last_known_affected_version_range": "<= 2.0.10"
}
}
],
"modified": "2026-10-26T15:00:05.318682585Z",
"provider": "osv",
"references": [
"https://github.com/getgrav/grav/security/advisories/GHSA-7pgq-cr25-xvc8",
"https://nvd.nist.gov/vuln/detail/CVE-2026-69088",
"https://github.com/getgrav/grav/commit/446d7f8f255918c8234634fe1dc2c9c77a0c673e",
"https://github.com/getgrav/grav",
"https://github.com/getgrav/grav/releases/tag/2.0.11",
"https://www.vulncheck.com/advisories/grav-cms-through-arbitrary-method-invocation-via-blueprint"
],
"provider_metadata": {
"cwe_ids": [
"CWE-200",
"CWE-470",
"CWE-94"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2026-09-17T17:16:39Z"
}
},
"related_cves": [
{
"value": "CVE-2026-69088",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/database_specific/severity"
},
"source_id": "core-osv",
"document_id": 454249,
"published_at": "2026-09-17T17:16:39+00:00"
}