CVE-2026-42845: CWE-73: External Control of File Name or Path in getgrav grav-plugin-form
CVE-2026-42845 is a high-severity vulnerability in the Grav CMS form plugin (grav-plugin-form) versions prior to 9.1.0. It allows unauthenticated attackers to overwrite page content via crafted file uploads due to insufficient sanitization of uploaded filenames. This could enable an attacker to overwrite the page's own markdown (. md) files and potentially escalate privileges to super-admin through a subsequent save action. The vulnerability is fixed in version 9.1.0 by stripping path components from filenames and blocking critical page-content extensions regardless of configuration.
AI Analysis
Technical Summary
The Grav CMS form plugin before version 9.1.0 contains an unauthenticated external control of file name or path vulnerability (CWE-73) that allows attackers to overwrite page content by uploading files with manipulated filenames. The plugin's permissive accept policy combined with the default destination setting ('self@') could be exploited to overwrite .md files and escalate privileges via a process save action. The fix in 9.1.0 enforces filename sanitization by removing path components and hard-blocking dangerous extensions such as md, yaml, yml, json, twig, and ini.
Potential Impact
An unauthenticated attacker can overwrite page content files, potentially leading to privilege escalation to super-admin by leveraging the ability to save manipulated content. This compromises the integrity of the CMS content and could lead to full site compromise if exploited.
Mitigation Recommendations
Upgrade grav-plugin-form to version 9.1.0 or later, where this vulnerability is fixed by proper filename sanitization and blocking of dangerous extensions. No other mitigations are indicated or required beyond applying this official fix.
CVE-2026-42845: CWE-73: External Control of File Name or Path in getgrav grav-plugin-form
Description
CVE-2026-42845 is a high-severity vulnerability in the Grav CMS form plugin (grav-plugin-form) versions prior to 9.1.0. It allows unauthenticated attackers to overwrite page content via crafted file uploads due to insufficient sanitization of uploaded filenames. This could enable an attacker to overwrite the page's own markdown (. md) files and potentially escalate privileges to super-admin through a subsequent save action. The vulnerability is fixed in version 9.1.0 by stripping path components from filenames and blocking critical page-content extensions regardless of configuration.
CVSS v4.0
Score 7.7high
Affected software
pkg:github/getgrav/grav-plugin-formRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Grav CMS form plugin before version 9.1.0 contains an unauthenticated external control of file name or path vulnerability (CWE-73) that allows attackers to overwrite page content by uploading files with manipulated filenames. The plugin's permissive accept policy combined with the default destination setting ('self@') could be exploited to overwrite .md files and escalate privileges via a process save action. The fix in 9.1.0 enforces filename sanitization by removing path components and hard-blocking dangerous extensions such as md, yaml, yml, json, twig, and ini.
Potential Impact
An unauthenticated attacker can overwrite page content files, potentially leading to privilege escalation to super-admin by leveraging the ability to save manipulated content. This compromises the integrity of the CMS content and could lead to full site compromise if exploited.
Mitigation Recommendations
Upgrade grav-plugin-form to version 9.1.0 or later, where this vulnerability is fixed by proper filename sanitization and blocking of dangerous extensions. No other mitigations are indicated or required beyond applying this official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-30T16:44:48.377Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a028783cbff5d86108b8ff2
Added to database: 05/12/2026, 01:50:59 UTC
Last enriched: 05/19/2026, 11:00:04 UTC
Last updated: 07/03/2026, 08:51:24 UTC
Views: 166
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.