CVE-2026-69088 — Grav: Incomplete callable validation in getgrav/grav
Grav: Incomplete callable validation in blueprint dynamic fields allows arbitrary static method invocation and file disclosure
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.41%). Schedule for your next planned update.
Does your project use an affected getgrav/grav version?
Paste your composer.lock to check it for CVE-2026-69088 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
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 :::
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 dangerous callables, never the target itself.
Utils::isDangerousFunction() (system/src/Grav/Common/Utils.php) classifies any string containing a colon (str_contains($name, ":")) or a namespace backslash as dangerous — so a qualified Class::method string would be rejected if it ever reached this function. The !str_contains($function, '::') condition in isSafeDynamicCall() ensures it never does, which is what leaves qualified static calls entirely unscreened. (Whether the exemption was intended to admit legitimate Class::method option-providers is a plausible reading of the surrounding code, but the intent is not established here.)
This is an incomplete fix of two recently published advisories — one addressing page editors executing hidden callables via form-field settings, the other extending the same guard to Flex directories. The guard those fixes introduced never covered qualified static calls. Grav's own permission model separates page-content code execution into a distinct, higher privilege (admin.pages_twig) from plain page editing (admin.pages), so invoking arbitrary methods from an admin.pages-authored page is a genuine trust-boundary bypass, not editor capability by design.
PoC
Tested on Grav develop at commit db8c1fc (which self-reports version 2.0.11) with the admin and form plugins, using an account granted only admin.login + admin.pages (page editor, not super-admin). The same guard is present in every current release from 2.0.7 through 2.0.10. Base URL shown as https://grav.example.
A. Arbitrary file read (confidentiality)
- Log in to
/adminas the page-editor account (GET/adminfor the login nonce, then POSTtask=login). - Save a page via the standard admin endpoint,
POST /admin/pages/<route>with the session cookie, the admin nonce, anddata[frontmatter]containing a form field with adownloadgadget directive:
The server returnsforms: x: fields: y: type: text data-opts@: - 'Grav\Common\Utils::download' - '/etc/passwd' - false - 0 - 1024 - mime: 'text/plain'HTTP 200and accepts the save — thedata-opts@directive is not rejected. - As an unauthenticated visitor (no cookies), request the saved page, e.g.
GET /<route>(use a fresh query string to avoid a cached copy; immediately after saving, a first request may404while the flat-file page index catches up — retry moments later). The response isHTTP 200with the raw contents of/etc/passwdin the body (root:x:0:0:...). Pointing the path atuser/accounts/<name>.yamlinstead returns that account file, including itshashed_password:bcrypt line — i.e. an anonymous visitor obtains a stored administrator's password hash.
B. Arbitrary file/directory write (integrity) — verified
Using the same mechanism with Grav\Common\Filesystem\Folder::copy (a public static method taking source and destination paths), a page editor caused the server to copy an existing page directory to an attacker-chosen new path under user/pages/; the newly created page then rendered its (attacker-controlled) content at the new route over plain HTTP. This demonstrates attacker-controlled creation of files/directories anywhere the web-server account can write. Folder::move and Folder::delete are equally reachable (their destructive nature was not exercised).
Impact
A page editor (an admin.pages-only account, not super-admin) can, through a page they author:
- Read any server-readable file, disclosed to any anonymous, unauthenticated visitor of the crafted page — including
user/accounts/*.yaml, which stores account metadata and bcrypt password hashes. An attacker may attempt offline cracking of a disclosed hash; recovery of a weak or reused administrator password could lead to full admin-panel compromise. Other secrets on disk (site/plugin config, environment files) are equally exposed. - Create or overwrite files and directories under the web-server account (demonstrated via
Folder::copy), withFolder::move/Folder::deleteadditionally reachable for destructive tampering.
Because the guard permits any public static method, the reachable impact is bounded only by the gadget surface of the loaded codebase, not by this report's demonstrated cases.
Advisory Timeline
- First published September 17, 2026 (70 days ago).
- Last revised October 26, 2026 — 39 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "getgrav/grav:^2.0.11"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| getgrav/grav Packagist · Affected: 2.0.10, 2.0.7, 2.0.8, 2.0.9 | 2.0.11 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
References
- https://github.com/getgrav/grav/security/advisories/GHSA-7pgq-cr25-xvc8WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-69088ADVISORY
- https://github.com/getgrav/grav/commit/446d7f8f255918c8234634fe1dc2c9c77a0c673eWEB
- https://github.com/getgrav/gravPACKAGE
- https://github.com/getgrav/grav/releases/tag/2.0.11WEB
- https://www.vulncheck.com/advisories/grav-cms-through-arbitrary-method-invocation-via-blueprintWEB
Frequently Asked Questions
- What is CVE-2026-69088?
- Grav: Incomplete callable validation in blueprint dynamic fields allows arbitrary static method invocation and file disclosure. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
- How do I check if my project is affected by CVE-2026-69088?
- CVE-2026-69088 affects getgrav/grav. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-69088 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 26.6% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-75828CRITICAL
Grav: detectXss() misses an event-handler attribute after an unpaired quote in an unquoted attribute value, giving stored XSS
- CVE-2026-42607CRITICAL
Grav Vulnerable to Remote Code Execution (RCE) via Malicious Plugin ZIP Upload in Direct Install Feature
- CVE-2025-66294HIGH
Grav is vulnerable to RCE via SSTI through Twig Sandbox Bypass
- CVE-2026-42844HIGH
Low-privileged Grav API users can create super-admin accounts via blueprint-upload
- CVE-2026-72819HIGH
Grav CMS vulnerable to remote code execution via .zip file upload
- CVE-2026-42611HIGH
Grav is Vulnerable to Stored XSS via Tag Injection
- CVE-2026-75837HIGH
Grav: Missing admin.super guard on core group blueprint access field allows admin.users operator to escalate to super-admin
- CVE-2023-31506MEDIUM
Cross-site scripting (XSS) vulnerability in Grav