CVE-2026-72819

Grav CMS before 2.0.13 Remote Code Execution via ZIP Upload

Published Aug 14, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
Grav CMS before 2.0.13 contains a remote code execution vulnerability in the Flex Objects plugin settings validation that allows authenticated users to execute arbitrary code by uploading a ZIP file containing PHP code. Attackers can bypass routine name validation by using array notation instead of string notation, call the unZip routine with a malicious archive, and write PHP files to the web root for execution.

Analysis

AI-generated

Technical impact

Grav CMS versions earlier than 2.0.13 contain a flaw in the Flex Objects plugin that allows authenticated users to upload a ZIP archive containing PHP code. By using array notation to bypass routine name validation, an attacker can trigger the unZip routine and have malicious PHP files written to the web root, where they will be executed. This vulnerability directly leads to remote code execution, compromising the confidentiality, integrity, and availability of the affected system.

Affected Systems

All installations of Grav CMS by getgrav running a version older than 2.0.13 are vulnerable when the Flex Objects plugin is present and active. The flaw requires the user to be authenticated within the CMS, as only those users can upload ZIP files through the plugin.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity risk. The EPSS score is not available, and the issue is not listed in the CISA KEV catalog, but the nature of the vulnerability—remote code execution through authenticated file upload—means that an attacker with valid credentials can completely compromise the server. The likely attack vector is an authenticated user uploading a specially crafted ZIP archive via the Flex Objects plugin, which then triggers the unZip routine to place executable PHP code on the web root.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Grav CMS update (2.0.13 or newer) to eliminate the vulnerability.
  • If immediate update is not possible, disable or remove the Flex Objects plugin from the CMS until the patch is applied.
  • Reduce the privileges of authenticated users to the minimum necessary for their role and monitor upload activity for suspicious ZIP files.
  • Ensure that only validated, non-executable content can be uploaded by implementing stricter input validation for archive names and content, following CWE‑94 mitigation guidelines.

Generated by OpenCVE AI on August 14, 2026 at 13:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-r94f-hx44-8jqf Grav CMS vulnerable to remote code execution via .zip file upload
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Grav CMS before 2.0.13 contains a remote code execution vulnerability in the Flex Objects plugin settings validation that allows authenticated users to execute arbitrary code by uploading a ZIP file containing PHP code. Attackers can bypass routine name validation by using array notation instead of string notation, call the unZip routine with a malicious archive, and write PHP files to the web root for execution.
Title Grav CMS before 2.0.13 Remote Code Execution via ZIP Upload
First Time appeared Getgrav
Getgrav grav
Weaknesses CWE-94
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Vendors & Products Getgrav
Getgrav grav
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 8, 2026, 3:24 PM
Reserved
Aug 10, 2026, 3:12 PM
Status
Deferred
Published
Aug 14, 2026, 12:16 PM
Modified
Oct 8, 2026, 4:17 PM