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