Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

Grav CMS Admin Direct Install Authenticated Plugin Upload RCE

Disclosed
Aug 7, 2025
Created
Mar 31, 2026

Description

Grav CMS version vulnerable to authenticated remote code execution via the
"Direct Install" feature in the administrative interface.

An authenticated administrator can upload a crafted plugin
archive containing arbitrary PHP code. The uploaded plugin
is written to disk and executed by the application, allowing
command execution in the context of the web server user.

This module authenticates to the admin panel, uploads a
malicious plugin via /admin/tools/direct-install, and
triggers execution of the embedded payload.

Authors

binneko
x1o3

Platform

PHP

Architectures

php

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/multi/http/grav_admin_direct_install_rce_cve_2025_50286
msf exploit(grav_admin_direct_install_rce_cve_2025_50286) > show targets
...targets...
msf exploit(grav_admin_direct_install_rce_cve_2025_50286) > set TARGET < target-id >
msf exploit(grav_admin_direct_install_rce_cve_2025_50286) > show options
...show and set options...
msf exploit(grav_admin_direct_install_rce_cve_2025_50286) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.