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