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

module

Netgear R7000 backup.cgi Heap Overflow RCE

Disclosed
Apr 21, 2021
Created
Jul 29, 2021

Description

This module exploits a heap buffer overflow in the genie.cgi?backup.cgi
page of Netgear R7000 routers running firmware version 1.0.11.116.
Successful exploitation results in unauthenticated attackers gaining
code execution as the root user.

The exploit utilizes these privileges to enable the telnet server
which allows attackers to connect to the target and execute commands
as the admin user from within a BusyBox shell. Users can connect to
this telnet server by running the command "telnet *target IP*".

Authors

colorlight2019
SSD Disclosure
Grant Willcox (tekwizz123)

Platform

Linux

Architectures

armle

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 auxiliary/admin/http/netgear_r7000_backup_cgi_heap_overflow_rce
msf auxiliary(netgear_r7000_backup_cgi_heap_overflow_rce) > show actions
...actions...
msf auxiliary(netgear_r7000_backup_cgi_heap_overflow_rce) > set ACTION < action-name >
msf auxiliary(netgear_r7000_backup_cgi_heap_overflow_rce) > show options
...show and set options...
msf auxiliary(netgear_r7000_backup_cgi_heap_overflow_rce) > run

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.