Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain publisher account or find anonymous process_markdown form
-
DeliverySave Markdown image URL with scoped method payload
-
ExploitBypass media action allowlist via self::/parent:: scope resolution
-
ExecutionChain into Process::fromShellCommandline and run
-
PersistExecute shell commands as web server user
-
ImpactFull control of site and server account
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 | Default path requires an authenticated publisher (page-editor) account (PR:L): the attacker saves a Markdown image URL whose query carries a scoped method name such as self::addMetaFile, which evades the method_exists() allowlist gate because a scoped name is not a real method, then exploits call_user_func_array resolving self::/parent::/Ancestor:: to chain a string result into a static call like Symfony\Component\Process\Process::fromShellCommandline followed by run. The alternative anonymous path requires the Email plugin's non-default 'process_markdown: true' setting on a form that anonymous visitors can submit, removing the authentication requirement entirely. Limiting factors: the default route needs a valid publisher account; the anonymous route needs a specific non-default plugin configuration. Workaround limits risk only partially - leaving process_markdown disabled (the default) closes the anonymous route, but there is no configuration workaround for the publisher route, so upgrading to 2.2.18 is the only complete fix. |
| Impact | This is a genuine high-priority issue in its default configuration, not an inflated high-CVSS score. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H, score 8.7) describes network-reachable, low-complexity exploitation requiring only low privileges (a publisher/page-editor account) and no user interaction, yielding full high confidentiality, integrity and availability impact - consistent with the CWE-94/CWE-470 code-execution mechanism described. The vuln.today decision label is 'this_week', reflecting urgency short of emergency. The critical nuance the CVSS base does not capture: the PR:L rating assumes the default publisher route, but the advisory confirms a second, anonymous path - any site running the Email plugin with the non-default 'process_markdown: true' on a form open to anonymous visitors is exposed to unauthenticated RCE, which would effectively be PR:N and materially higher real-world risk. No EPSS score, CISA KEV listing, or confirmed public exploit code is present in the supplied data, so exploitation probability signals are absent; the single reference is the vendor GHSA advisory, which documents a working reproducer (account-hash leak in a 500 response and 'id' running as www-data) but is not published as a confirmed weaponized exploit. Net: treat as a real priority to patch promptly, with elevated priority for any deployment using the anonymous process_markdown route. |
| Exploit ScenarioDerived | A user with publisher (page-editor) rights saves a single Markdown image URL containing a scoped method payload (e.g. self::addMetaFile chained into Symfony Process::fromShellCommandline + run); when the page is rendered, shell commands execute as the web server user. On sites where the Email plugin has process_markdown enabled on a publicly submittable form, an anonymous visitor can deliver the same payload via a contact form, achieving RCE without any account. A working reproducer is described in the advisory, but no confirmed public exploit code is identified in the provided data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
Authenticated publishers on Grav 2.0.0 through 2.2.17 can turn a Markdown image URL into arbitrary file read and shell command execution as the web server user, yielding full control of the site and its hosting account. The payload slips past the media action allowlist by supplying scoped method names such as self::addMetaFile, then chains the resulting string into a static call like Symfony\Component\Process\Process::fromShellCommandline. The default path requires a publisher account, but sites running the Email plugin with process_markdown: true on a form anonymous visitors can submit expose the same primitive without authentication; the upstream advisory documents a reproducer, and no confirmed public exploit code or KEV listing was identified at time of analysis.
RemediationAI
Upgrade to Grav 2.2.18, the vendor-released patch, which dispatches actions with $medium->{$method}(...$args) so scoped names fall through to the magic call rather than the real method, keeps only media or link object results in $medium, applies the same change to the Link class, and re-evaluates the allowlist for every action against the current medium. The only configuration workaround the vendor describes is leaving process_markdown disabled in the Email plugin (the default), which closes the anonymous route through publicly submittable forms but does nothing for the publisher route, for which no configuration workaround exists. Because a publisher account is sufficient for full site and server-account compromise, treat the upgrade as the only complete fix and confirm the installed version on any 2.x site where non-administrative users can edit pages. Full details are in the advisory at https://github.com/getgrav/grav/security/advisories/GHSA-fhg3-xwwr-cq26.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Grav renders Markdown image URLs that can carry media actions in the query string (for example photo.jpg?resize=100,100). The Excerpts class gates those actions with method_exists($medium, $name), so any name that is not a genuine method on the medium object is silently treated as a harmless URL parameter. A scope-resolved name such as self::addMetaFile or parent::x is not a method name and therefore clears the gate, but the dispatch that follows uses call_user_func_array([$medium, $name], $args), and PHP resolves self::, parent:: and Ancestor:: prefixes to the real method anyway. Because each action replaces $medium with the previous action's return value, a string return turns the next action into a static call on an arbitrary class, which is how Process::fromShellCommandline plus run reaches shell execution. Link::__call() resolves scoped names the same way, which also exposes the Lightbox Gallery plugin's media actions (GHSA-jq4h-4q3q-hr32), and the allowlist is evaluated only once against the original medium even though actions such as display=thumbnail and link swap in an object of a different class. This is CWE-94 code injection compounded by CWE-470 (use of externally controlled input to select classes or code): attacker-controlled names choose which callable is invoked. The vulnerable allowlist and dispatch code date from 2.0.0-rc.10; Grav 1.7 has no allowlist at all, so publisher-to-code-execution has always been open there and that branch is outside this advisory.
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
Network-reachable, low-complexity payload executable by a low-privileged publisher with no user interaction, yielding code execution as the web server user with full C/I/A impact; scope unchanged.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Grav from 2.0.0 before 2.2.18 contains a remote code execution vulnerability that allows publishers to bypass the media action allowlist using scoped method names in Markdown image URLs. Attackers can chain actions like self::addMetaFile into static calls such as Process::fromShellCommandline to read files and run shell commands as the web server user.
Technical POC Analysis
CWE-94 (code injection), with the advisory also tagging CWE-470 (externally controlled input selecting classes/code).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity vulnerability in Grav CMS (versions 2.0.0-2.2.17) allows authenticated publishers to execute arbitrary shell commands and read files, potentially leading to full site compromise. Sites using the Email plugin with process_markdown: true on public forms face unauthenticated exploitation, risking data breaches and reputational damage. Leadership should prioritize remediation to prevent operational disruption.
No vendor-released patch identified at time of analysis; interim mitigations include disabling the Email plugin's process_markdown feature, restricting publisher accounts, and monitoring for suspicious activity.
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-128806
GHSA-2hm5-q8qp-pcc2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB