CVE-2026-130736

Grav 2.0.0 before 2.2.18 RCE via Markdown Image URL Media Actions

Published Nov 18, 2026 CVSS 4.0 · 8.7 High EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Grav, a flat‑file content management system, harbors a code injection flaw that allows content publishers to bypass the Media Actions allowlist by embedding scoped method names in Markdown image URLs. The vulnerability, classified as CWE-94, permits attackers to trigger unsafe actions such as self::addMetaFile and chain them to static calls like Process::fromShellCommandline. When exploited, the web application can read arbitrary files and execute shell commands with the privileges of the web server user, effectively providing full remote code execution over the web server process.

Affected Systems

Users running Grav CMS from version 2.0.0 onwards are potentially affected. Based on the advisory description, it is inferred that all releases before 2.2.18 are vulnerable. The upgrade to 2.2.18 or later resolves the flaw. The product is listed as getgrav:grav.

Risk and Exploitability

The CVSS score of 8.7 classifies this vulnerability as high severity, and the lack of an EPSS score indicates that exploitation probability is unknown but potentially high given the remote code execution capability. Because the issue is not listed in the CISA KEV catalog, there is no evidence of widespread exploitation yet, but the vulnerability can be activated by any user with publishing rights to Markdown content, making it a realistic threat for sites that allow content editors to add or modify posts. The attack vector is likely through crafted Markdown files, so up‑to‑date CMS versions and tightened media action controls are critical to mitigate risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Grav to version 2.2.18 or newer to apply the fix for the RCE vulnerability.
  • Review and tighten the Media Actions allowlist configuration to remove or disable methods that can be invoked via Markdown image URLs, ensuring only safe actions are permitted.
  • Audit existing published content for malicious Markdown image URLs and remove any that trigger unsafe method calls; consider adding a moderation step for new content.

Generated by OpenCVE AI on November 18, 2026 at 19:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Grav 2.0.0 before 2.2.18 RCE via Markdown Image URL Media Actions
First Time appeared Getgrav
Getgrav grav
Weaknesses CWE-94
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Vendors & Products Getgrav
Getgrav grav
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': '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'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 18, 2026, 1:26 PM
Reserved
Nov 17, 2026, 3:40 PM
Status
Deferred
Published
Nov 18, 2026, 12:17 PM
Modified
Nov 18, 2026, 2:17 PM