Skip to main content

Grav CMS CVE-2026-64850

| EUVDEUVD-2026-62549 HIGH
Code Injection (CWE-94)
2026-08-19 GitHub_M GHSA-fj2p-qj2f-74v5
8.7
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with admin.pages or api.pages.write account
  2. Delivery
    Embed malicious data-options@ directive in page frontmatter
  3. Exploit
    Issue HTTP request to trigger page render
  4. Execution
    Blueprint::dynamicData() passes callable to call_user_func_array()
  5. Persist
    Trampoline through Utils::arrayFilterRecursive() into system()
  6. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

grav < 2.0.7

Affected Packages

composer getgrav/grav fix: 2.0.7
euvd grav fix: 2.0.7

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

Vendor (GitHub_M) PRIMARY 8.7 HIGH
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
vuln.today AI 8.8 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 19, 2026 - 17:02 EUVD
CVE Published
Aug 19, 2026 - 15:58 cve.org
HIGH 8.7

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 73% exploitable
Prevalence
Medium
popular PHP flat-file CMS, niche relative to WordPress or Drupal
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

More in Grav

View all
CVE-2025-66294 HIGH POC
8.7 Dec 01

Server-side template injection (SSTI) in Grav (getgrav/grav) prior to 1.8.0-beta.27 allows an authenticated attacker hol

CVE-2025-66301 HIGH POC
8.6 Dec 01

Broken access control in Grav CMS (CWE-285) before 1.8.0-beta.27 lets an authenticated editor-level user escalate their

CVE-2025-50286 HIGH POC
8.1 Aug 06

A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug

CVE-2024-34082 CRITICAL POC
9.9 May 15

Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a

CVE-2021-47812 CRITICAL POC
9.8 Jan 16

GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv

CVE-2026-65008 CRITICAL POC
9.3 Jul 21

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

CVE-2026-75827 CRITICAL POC
9.3 Aug 18

Remote code execution in Grav CMS before 2.0.15 allows attackers holding page-edit or blueprint-config privileges to wri

CVE-2026-75837 CRITICAL POC
9.3 Aug 18

Vertical privilege escalation in Grav CMS before 2.0.14 lets a delegated administrator holding only the admin.users perm

CVE-2026-75828 CRITICAL POC
9.3 Aug 18

Stored cross-site scripting in Grav CMS before 2.0.15 lets authenticated editors smuggle JavaScript event handlers past

CVE-2025-66844 CRITICAL POC
9.1 Dec 15

Server-side request forgery (SSRF) in Grav CMS versions prior to 1.7.49.5 allows remote authenticated attackers to make

CVE-2025-66299 HIGH POC
8.8 Dec 01

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

CVE-2026-72819 HIGH POC
8.7 Aug 14

Remote code execution in Grav CMS before 2.0.13 allows authenticated low-privilege users to plant and execute arbitrary

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy