CVE-2026-61873: External Control of File Name or Path in getgrav grav
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.
AI Analysis
Technical Summary
CVE-2026-61873 is an arbitrary file write vulnerability in Grav CMS before version 9.1.8. The issue exists in the Form plugin's process.save.filename parameter, which is initially validated to prevent path traversal but is not re-validated after being processed through Twig templates. This flaw allows attackers to submit form data containing path traversal sequences that, after Twig rendering, can result in writing files to arbitrary locations such as the web root. This can be exploited to upload malicious files like PHP webshells, leading to remote code execution or full system compromise. The vulnerability has a CVSS 4.0 score of 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 to the server, including placing PHP webshells in the web root or other sensitive directories. This can lead to remote code execution, full system compromise, data loss, or service disruption. The vulnerability affects the integrity and availability of the affected system.
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 to prevent path traversal and template injection. Monitor for suspicious file writes and consider disabling the vulnerable functionality if feasible.
CVE-2026-61873: External Control of File Name or Path in getgrav 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
Affected software
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
Technical Analysis
CVE-2026-61873 is an arbitrary file write vulnerability in Grav CMS before version 9.1.8. The issue exists in the Form plugin's process.save.filename parameter, which is initially validated to prevent path traversal but is not re-validated after being processed through Twig templates. This flaw allows attackers to submit form data containing path traversal sequences that, after Twig rendering, can result in writing files to arbitrary locations such as the web root. This can be exploited to upload malicious files like PHP webshells, leading to remote code execution or full system compromise. The vulnerability has a CVSS 4.0 score of 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 to the server, including placing PHP webshells in the web root or other sensitive directories. This can lead to remote code execution, full system compromise, data loss, or service disruption. The vulnerability affects the integrity and availability of the affected system.
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 to prevent path traversal and template injection. Monitor for suspicious file writes and consider disabling the vulnerable functionality if feasible.
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/30/2026, 00:03:50 UTC
Last updated: 08/29/2026, 22:52:13 UTC
Views: 75
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.