Skip to main content

Grav CMS CVE-2026-61873

| EUVDEUVD-2026-44621 HIGH
External Control of File Name or Path (CWE-73)
2026-07-15 VulnCheck GHSA-m8gp-46r6-rc3f
7.2
CVSS 4.0 · Vendor: VulnCheck
Share

Severity by source

Vendor (VulnCheck) PRIMARY
7.2 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
8.1 HIGH

Network-reachable form submission with low complexity but requires a low-privileged account (PR:L); arbitrary file write yields High integrity and availability impact, with confidentiality None at base per the input.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
X

Lifecycle Timeline

3
Patch available
Jul 15, 2026 - 13:03 EUVD
Analysis Generated
Jul 15, 2026 - 12:21 vuln.today
CVE Published
Jul 15, 2026 - 11:25 cve.org
HIGH 7.2

DescriptionCVE.org

Grav before 9.1.8 contains an arbitrary file write vulnerability in the Form plugin's process.save.filename parameter, which is validated against path traversal before Twig processing but never re-validated after rendering. Attackers can submit form data containing path traversal sequences that are processed through Twig templates, allowing them to write arbitrary files including PHP webshells to the web root or other sensitive directories.

AnalysisAI

Authenticated arbitrary file write in the Grav CMS Form plugin (versions before 9.1.8) allows attackers to plant PHP webshells in the web root by abusing the process.save.filename parameter. The filename is checked for path traversal before Twig rendering but never re-validated afterward, so traversal sequences reconstructed during template evaluation bypass the guard. No public exploit has been identified at time of analysis, and it is not listed in CISA KEV; the flaw was disclosed by VulnCheck via a coordinated GitHub security advisory.

Technical ContextAI

Grav is an open-source flat-file PHP CMS whose Form plugin lets site builders define forms that persist submissions to disk via a save action. The save filename supports Twig templating so it can be dynamically composed from submitted values. The defect is a CWE-73 (External Control of Filename or Path) time-of-check/time-of-use gap: input to process.save.filename is sanitized against '../' sequences before Twig processing, but Twig rendering can re-introduce or assemble those sequences (for example from concatenated form fields or Twig expressions), and the resulting rendered path is written without a second validation pass. Because the plugin ultimately writes attacker-influenced content to an attacker-influenced path within a PHP execution context, a resulting .php file dropped under the web root becomes a directly executable webshell.

RemediationAI

Vendor-released patch: 9.1.8 - upgrade Grav (and its bundled Form plugin) to 9.1.8 or later, which re-validates the rendered filename after Twig processing, per the vendor advisory at https://github.com/getgrav/grav/security/advisories/GHSA-q532-mvx7-42qg. Where immediate patching is not possible, restrict who can submit to form-save endpoints by tightening authentication and removing low-privilege access to pages using the save action, and audit form definitions to avoid Twig expressions in process.save.filename, pinning save filenames to server-controlled static values or a fixed directory outside the web root - the trade-off is loss of dynamic per-submission filenames. Additionally, deny PHP execution in user-writable/save-target directories at the web-server layer (an Apache/nginx rule preventing .php handling under those paths), which blocks webshell execution at the cost of breaking any legitimate PHP served from those locations. Finally, monitor form-save target directories for unexpected .php or executable files as a detective control.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

Share

CVE-2026-61873 vulnerability details – vuln.today

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