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.