Description
Grav CMS version <=1.7.49.5 with Admin Plugin version <=1.10.49.3 is 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.
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_50286msf undefined(admin_direct_install_rce_cve_2025_50286) > show actions ...actions...msf undefined(admin_direct_install_rce_cve_2025_50286) > set ACTION < action-name >msf undefined(admin_direct_install_rce_cve_2025_50286) > show options ...show and set options...msf undefined(admin_direct_install_rce_cve_2025_50286) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub