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…
EPSS 0.6%top 55%

CVE-2026-42845: CWE-73: External Control of File Name or Path in getgrav grav-plugin-form

0
High
VulnerabilityCVE-2026-42845cvecve-2026-42845cwe-73
Published: 05/11/2026 (05/11/2026, 15:44:35 UTC)
Source: CVE Database V5
Vendor/Project: getgrav
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P

Affected software

GitHub Actionsmore threats →ai
getgrav/grav-plugin-form
pkg:github/getgrav/grav-plugin-form
Affected versions
<9.1.0

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: 05/19/2026, 11:00:04 UTC

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.

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