Skip to main content

Grav CMS EUVDEUVD-2026-44621

| CVE-2026-61873 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
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to Grav form endpoint
  2. Delivery
    Craft form fields with traversal payload
  3. Exploit
    Twig renders malicious save path
  4. Execution
    Bypass pre-render path check
  5. Persist
    Write PHP webshell to web root
  6. Impact
    Request webshell for RCE

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
Exploitation Conditions

Exploitation requires (1) a Grav site running a version before 9.1.8, (2) a form defined with the Form plugin's process.save action enabled, and (3) the ability to submit to that form - the CVSS PR:L indicates low-level privileges are needed, so it is not fully anonymous unless the site exposes form-save to unauthenticated visitors. The attacker must craft form field values so that Twig rendering of process.save.filename produces path-traversal sequences (e.g. reconstructing '../') that were absent at the pre-render validation stage. Limiting factors: the target site must actually use a save-enabled form, the account must be permitted to submit it, and no victim user interaction is required (UI:N). If form-save is not configured or the endpoint is unreachable, the vulnerability is not exploitable.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N, VI:H/VA:H, VC:N) scores 7.2 and is internally consistent with the description: network-reachable, low attack complexity, no user interaction, but requiring low-level privileges (PR:L) - i.e. an account able to submit to a form-save-enabled endpoint, not fully anonymous access. Integrity and availability impact are High (arbitrary file write / webshell) while confidentiality is rated None at the base level, though in practice a dropped webshell trivially escalates to full read access, so the real-world blast radius exceeds the base VC:N. No EPSS score, no SSVC decision, and no KEV/POC signal were provided, so exploitation probability cannot be quantified from the input. This is a credible priority for any Grav deployment that exposes form-save functionality to semi-trusted users because the endpoint of the chain is remote code execution; however, the PR:L requirement and dependence on a form configured with a save action meaningfully limit exposure versus a fully unauthenticated bug. Treat the base VC:N as understated given the webshell follow-on.

Exploit ScenarioDerived

A low-privileged authenticated user, or any actor who can reach a form configured with a save action, submits form data whose fields embed path-traversal sequences that Twig reassembles into a path such as ../../user/pages/shell.php. Because the rendered filename is never re-checked, Grav writes attacker-controlled content there, and the attacker then requests the dropped PHP file to obtain remote code execution. No public proof-of-concept was provided, and the low CVSS attack complexity indicates the write is reliable once the prerequisites are met.

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

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

Alert me

AnalysisAIv1 – Jul 15, 2026

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.

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.

Affected VersionsENISA

grav 0 <9.1.8

Affected Packages

euvd grav fix: 9.1.8

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

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 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
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
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
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
Jul 15, 2026 - 13:03 EUVD
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.

Executive ViewAI

Why It Matters

The Grav CMS Form plugin contains an authenticated arbitrary file write vulnerability (CVE-2026-61873, CVSS 7.2) affecting versions before 9.1.8 that allows authorized users to plant PHP webshells in the application root, enabling remote code execution. Organizations using this plugin face insider threat and credential compromise risks; any exposed administrative account could trigger full system compromise. No patch is currently available, requiring immediate compensating controls pending vendor resolution.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict Form plugin access through access control lists to verified administrators; (2) Disable the plugin if not actively required; (3) Implement Web Application Firewall rules to detect and block requests with suspicious filename parameter values; (4) Enable detailed audit logging of form submissions and file operations; (5) Monitor vendor announcements for patch release; (6) Minimize accounts with form plugin permissions to reduce attack surface.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Medium
popular open-source flat-file PHP CMS, moderate real-world footprint
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 0.3%
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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

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