Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with admin.pages or api.pages.write account
-
DeliveryEmbed malicious data-options@ directive in page frontmatter
-
ExploitIssue HTTP request to trigger page render
-
ExecutionBlueprint::dynamicData() passes callable to call_user_func_array()
-
PersistTrampoline through Utils::arrayFilterRecursive() into system()
-
ImpactExecute arbitrary OS command as web server user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated Grav CMS account holding either the admin.pages or api.pages.write permission - these are the specific permission strings that gate access to page frontmatter editing. The attacker must be able to create or modify page content including YAML frontmatter. The embedded command is not executed at write time; it fires when the page is rendered, meaning a separate HTTP request to the page URL is required to trigger execution (the attacker can make this request themselves, so victim interaction is not strictly required). Unauthenticated exploitation is not possible: Grav does not expose page editing to anonymous users by default. The privilege bar is the primary limiting factor - deployments where admin.pages or api.pages.write is restricted to a small set of fully trusted internal accounts are substantially less exposed than those where it is granted broadly. |
| Impact | The CVSS 4.0 score of 8.7 (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H) accurately captures the threat profile: network-reachable, low exploitation complexity, requiring only a low-privilege page-editor account, with full confidentiality, integrity, and availability impact on the vulnerable system. The PR:L requirement is the single critical limiting factor - this is not an unauthenticated pre-auth exploit. No EPSS data is present in the provided intelligence; exploitation probability cannot be quantified from available signals. The vulnerability is not listed in CISA KEV and no standalone POC exploit code has been identified, though the attack technique is comprehensively described in the GitHub advisory, lowering the barrier for any motivated actor who already holds a page-editor account. Real-world risk is strongly tied to how broadly page-editing permissions are granted: organizations that issue admin.pages or api.pages.write to external contributors, freelancers, or automated integrations face substantially elevated exposure. The absence of KEV listing and the authenticated prerequisite argue against treating this as a mass-exploitation crisis, but the full RCE impact and a clearly documented attack chain make patching to 2.0.7 a genuine priority for any Grav deployment where editor accounts are not exclusively held by fully trusted internal staff. |
| Exploit ScenarioDerived | A Grav contributor account with admin.pages permission edits a page and embeds a malicious data-options@ blueprint directive in the YAML frontmatter, specifying Grav\Common\Utils::arrayFilterRecursive as the provider and system as a callable argument carrying an OS command such as a reverse-shell one-liner. When any subsequent HTTP request causes Grav to render that page - whether by the attacker themselves, an authenticated user, or an automated crawler - Blueprint::dynamicData() invokes call_user_func_array() with the trampoline chain intact, executing the command as the web server user (e.g., www-data). No standalone POC exploit code is publicly identified beyond the advisory's detailed technique description. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 19, 2026
Remote code execution in Grav CMS prior to 2.0.7 allows low-privileged page editors to execute arbitrary OS commands as the web server user via a callable-injection flaw in Blueprint::dynamicData(). An account holding admin.pages or api.pages.write permission can embed a malicious data-options@ blueprint directive in page frontmatter that chains through Utils::arrayFilterRecursive() as a trampoline into PHP's system() function, executing the command when the page is rendered. No CISA KEV listing or public exploit code is identified at time of analysis; the full attack technique is documented in GitHub Security Advisory GHSA-fj2p-qj2f-74v5.
RemediationAI
Upgrade Grav CMS to version 2.0.7 or later, available at https://github.com/getgrav/grav/releases/tag/2.0.7; this is the vendor-confirmed fix and closes the vulnerability by adding callable-safety guards in Blueprint.php. The patch is confirmed via commit acffa34cbb0787fee87c609e0d6289e904fee33c. If immediate patching is not feasible, restrict the admin.pages and api.pages.write permissions exclusively to fully trusted internal accounts and audit all existing accounts holding these permissions - removing them from any external, contractor, or automated-integration accounts eliminates the attack surface entirely, since exploitation is impossible without at least one of these permissions. There is no known workaround that preserves the blueprint dynamic data feature while blocking the exploit short of applying the patch.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Grav is a PHP-based, file-driven CMS (CPE: cpe:2.3:a:getgrav:grav). Its blueprint system supports data-*@ directives that call Class::method providers via call_user_func_array() to populate form field options dynamically. The root cause (CWE-94: Improper Control of Code Generation / Code Injection) is that Blueprint::dynamicData() in system/src/Grav/Common/Data/Blueprint.php accepted attacker-controlled callable names and arguments without any allowlist or denylist validation. This enabled an authenticated editor to specify Grav\Common\Utils::arrayFilterRecursive as the provider and pass system as a callable argument, using the legitimate helper as a trampoline to invoke the OS shell. The fix in 2.0.7 adds isSafeDynamicCall() and a recursive paramsContainDangerousCallable() scan to Blueprint.php, blocking both direct dangerous function invocation and the trampoline gadget pattern.
Know when Grav gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
PR:L reflects the mandatory page-editor account; UI:N because the attacker can self-trigger the page render; S:U as code executes within the web server process without crossing a security boundary.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
Grav CMS versions prior to 2.0.7 contain a critical authorization bypass enabling low-privileged editors to execute arbitrary operating system commands as the web server user through blueprint directive injection. Organizations running affected versions risk unauthorized command execution by internal staff or compromised editorial accounts, potentially leading to data theft, malware deployment, or lateral network movement. Immediate permission audits and version validation are critical.
No vendor-released patch identified at time of analysis. Restrict admin.pages and api.pages.write permissions to a minimal set of trusted internal administrators; run Grav web server process with minimal system privileges and disable shell execution capabilities; mandate peer code review before publication of any page content; implement network segmentation limiting Grav instance access to internal networks only; configure monitoring and alerting on web server process execution logs for unexpected system commands.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Server-side template injection (SSTI) in Grav (getgrav/grav) prior to 1.8.0-beta.27 allows an authenticated attacker hol
Broken access control in Grav CMS (CWE-285) before 1.8.0-beta.27 lets an authenticated editor-level user escalate their
A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug
Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a
GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv
Remote code execution in Grav CMS 2.0.4 (fixed in 2.0.7) lets an authenticated user holding the admin.pages or api.pages
Remote code execution in Grav CMS before 2.0.15 allows attackers holding page-edit or blueprint-config privileges to wri
Vertical privilege escalation in Grav CMS before 2.0.14 lets a delegated administrator holding only the admin.users perm
Stored cross-site scripting in Grav CMS before 2.0.15 lets authenticated editors smuggle JavaScript event handlers past
Server-side request forgery (SSRF) in Grav CMS versions prior to 1.7.49.5 allows remote authenticated attackers to make
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, Grav CMS is vulnerable to a Server-Side Template Injection (S
Remote code execution in Grav CMS before 2.0.13 allows authenticated low-privilege users to plant and execute arbitrary
EUVD-2026-62549
GHSA-fj2p-qj2f-74v5
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB