Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-61873: External Control of File Name or Path in getgrav grav

0
High
VulnerabilityCVE-2026-61873cvecve-2026-61873
Published: 07/15/2026 (07/15/2026, 11:25:56 UTC)
Source: CVE Database V5
Vendor/Project: getgrav
Product: grav

Description

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.

CVSS v4.0

Score 7.2high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →ai
getgrav/grav
pkg:github/getgrav/grav
Affected versions
<9.1.8

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 12:17:26 UTC

Technical Analysis

CVE-2026-61873 affects Grav CMS before version 9.1.8. The vulnerability is in the Form plugin's process.save.filename parameter, which is intended to prevent path traversal attacks by validating input before Twig template processing. However, after Twig rendering, the parameter is not re-validated, enabling attackers to bypass the initial validation. This results in an arbitrary file write vulnerability, allowing malicious users to write files anywhere on the server accessible to the web process, including executable PHP files. The CVSS 4.0 score is 7.2, indicating high severity with network attack vector, low attack complexity, no user interaction, and high impact on integrity and availability.

Potential Impact

Successful exploitation allows an attacker with low privileges to write arbitrary files on the server, including PHP webshells, which can lead to remote code execution and full compromise of the affected system. This compromises the integrity and availability of the application and potentially the entire server hosting Grav CMS.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to the Form plugin and validate or sanitize inputs that control file paths. Monitor for suspicious file writes in web-accessible directories. Avoid exposing the vulnerable versions in public-facing environments.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-07-10T21:54:26.760Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a57772068715ace43a93bd7

Added to database: 07/15/2026, 12:03:44 UTC

Last enriched: 07/15/2026, 12:17:26 UTC

Last updated: 07/15/2026, 19:32:50 UTC

Views: 12

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses