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-42607: CWE-94: Improper Control of Generation of Code ('Code Injection') in getgrav grav

0
Critical
VulnerabilityCVE-2026-42607cvecve-2026-42607cwe-94
Published: Mon May 11 2026 (05/11/2026, 14:58:42 UTC)
Source: CVE Database V5
Vendor/Project: getgrav
Product: grav

Description

Grav is a file-based Web platform. Prior to 2.0.0-beta.2, an authenticated user with administrative privileges can achieve Remote Code Execution (RCE) by uploading a specially crafted ZIP file through the "Direct Install" tool. While the system attempts to block direct .php file uploads, it fails to inspect the contents of uploaded ZIP archives. Once a malicious plugin is extracted, it can execute arbitrary PHP code or drop a persistent web shell on the server. This vulnerability is fixed in 2.0.0-beta.2.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/11/2026, 15:54:27 UTC

Technical Analysis

Grav, a file-based web platform, contains a code injection vulnerability (CWE-94) in versions before 2.0.0-beta.2. An authenticated user with admin privileges can upload a crafted ZIP archive through the Direct Install feature. Although direct PHP file uploads are blocked, the contents of ZIP files are not inspected, allowing extraction of malicious plugins that execute arbitrary PHP code or drop persistent web shells, leading to remote code execution. The vulnerability has a CVSS 3.1 score of 9.1, indicating critical severity. The issue is resolved in Grav 2.0.0-beta.2.

Potential Impact

Successful exploitation enables an authenticated administrative user to execute arbitrary PHP code remotely, potentially leading to full system compromise, data theft, or persistent unauthorized access via web shells. The vulnerability affects confidentiality, integrity, and availability of the affected system.

Mitigation Recommendations

Upgrade Grav to version 2.0.0-beta.2 or later, where this vulnerability is fixed. Until the upgrade is applied, restrict administrative user access to trusted personnel only. Patch status is not explicitly stated beyond the fixed version; therefore, verify vendor advisories for the latest remediation guidance.

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-29T00:31:15.725Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a01f78ecbff5d86102f202e

Added to database: 5/11/2026, 3:36:46 PM

Last enriched: 5/11/2026, 3:54:27 PM

Last updated: 5/12/2026, 3:50:49 AM

Views: 5

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