Skip to main content

Grav CMS CVE-2026-130736

| EUVDEUVD-2026-128806 HIGH
Code Injection (CWE-94)
2026-11-18 VulnCheck GHSA-2hm5-q8qp-pcc2
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Obtain publisher account or find anonymous process_markdown form
  2. Delivery
    Save Markdown image URL with scoped method payload
  3. Exploit
    Bypass media action allowlist via self::/parent:: scope resolution
  4. Execution
    Chain into Process::fromShellCommandline and run
  5. Persist
    Execute shell commands as web server user
  6. Impact
    Full 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.

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

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

Alert me

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

grav 2.0.0 <2.2.18

Affected Packages

euvd grav fix: 2.2.18

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

Vendor (VulnCheck) 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

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.

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 (VulnCheck).

CVSS VectorVendor: VulnCheck

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
Nov 18, 2026 - 13:02 EUVD
CVE Published
Nov 18, 2026 - 11:34 cve.org
HIGH 8.7

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
1.1%
Top 33% exploitable
Prevalence
Low
niche open-source flat-file CMS, limited enterprise deployment footprint
Data Quality
4 sources
Confidence: Medium

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 No
EPSS 1.1%
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
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
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