Description
NETGEAR R6250 before 1.0.4.6.Beta, R6400 before 1.0.1.18.Beta, R6700 before 1.0.1.14.Beta, R6900, R7000 before 1.0.7.6.Beta, R7100LG before 1.0.0.28.Beta, R7300DST before 1.0.0.46.Beta, R7900 before 1.0.1.8.Beta, R8000 before 1.0.3.26.Beta, D6220, D6400, D7000, and possibly other routers allow remote attackers to execute arbitrary commands via shell metacharacters in the path info to cgi-bin/.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Netgear R7000 and R6400 cgi-bin Command Injection
exploit/linux/http/netgear_r7000_cgibin_exec
Exploit-DB 2
- Netgear R7000 / R6400 - 'cgi-bin' Command Injection (Metasploit) EDB-41598 · remote · Mar 13, 2017 · verified
- Netgear R7000 - Command Injection EDB-40889 · webapps · Dec 7, 2016 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- NETGEAR Routers - Remote Code Execution http/cves/2016/CVE-2016-6277.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
References
- 40889 exploit
- 41598 exploit
- http://kb.netgear.com/000036386/CVE-2016-582384
- http://www.sj-vs.net/a-temporary-fix-for-cert-vu582384-cwe-77-on-netgear-r7000-and-r6400-routers/
- VU#582384 third-party-advisory
- 94819 vdb-entry
- https://kalypto.org/research/netgear-vulnerability-expanded/
- http://packetstormsecurity.com/files/155712/Netgear-R6400-Remote-Code-Execution.html