CVE-2021-45382
Critical · 9.8 CISA KEVCVSS
9.8
EPSS
97.8%
Published
Feb 17, 2022
CISA due date
Apr 25, 2022
Cloudanix analysis
Some older D-Link routers can be taken over remotely and will not be fixed by the vendor, so they should be replaced or isolated immediately.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Trivial
- Impact
- Remote Code Execution
- Component
- Firmware
- Class
- Command Injection
- Remediation
- No Fix Yet
- Effort
- High
- Patch risk
- High
What it actually does
CVE-2021-45382 is an unauthenticated network-accessible command injection vulnerability in the DDNS handling code of the D-Link ncc2 binary on affected DIR-810L, DIR-820L/LW, DIR-826L, DIR-830L, and DIR-836L routers. A crafted DDNS-related HTTP request can cause attacker-controlled input to be interpreted by the underlying operating system shell, allowing arbitrary command execution with the privileges of the router web service, commonly root on embedded router firmware. Successful exploitation can provide full device compromise, including configuration theft, traffic interception, malware installation, botnet enrollment, lateral movement support, DNS manipulation, and denial of service.
Why it matters to the business
Compromised edge routers can become an entry point into internal networks, a platform for attacks against others, or a persistent point of traffic interception. Because the affected router models are end-of-life/end-of-service and the vendor has stated they will not receive a patch, organizations cannot rely on a normal firmware update to remediate the flaw. The vulnerability is listed in CISA KEV, has a very high EPSS score, and has been exploited in the wild for years, so any internet-exposed affected device should be treated as high-risk and prioritized for replacement or isolation.
How an attack unfolds
An attacker scans the internet or a target network for exposed D-Link DIR-810L, DIR-820L/LW, DIR-826L, DIR-830L, or DIR-836L administrative web interfaces. After identifying a vulnerable device, the attacker sends a crafted request to the router's DDNS functionality handled by the ncc2 binary. Malicious shell metacharacters or command payloads embedded in DDNS parameters are passed unsafely to the operating system, causing the router to execute arbitrary commands. The attacker typically uses this initial command execution to download a second-stage payload with wget, curl, tftp, or a similar utility, change permissions, execute malware, and remove traces. Post-exploitation activity may include joining the router to a botnet, modifying DNS or firewall settings, harvesting configuration secrets, creating persistence where possible, proxying traffic, or using the device as a beachhead for further network reconnaissance.
How to fix it
Replace affected devices rather than attempting to patch them. D-Link has indicated that the affected DIR-810L, DIR-820L/LW, DIR-826L, DIR-830L, and DIR-836L models, across all hardware revisions, are end-of-life/end-of-service and will not receive a vendor fix for this issue. If immediate replacement is not possible, remove the device from internet exposure, disable remote administration, restrict management access to a dedicated trusted management network or VPN, block inbound access to the router web interface from untrusted networks, disable DDNS functionality if not required, rotate administrative credentials, and monitor for suspicious outbound connections. Factory reset alone is not sufficient as a durable remediation if the vulnerable device remains deployed and reachable. Organizations subject to CISA KEV guidance were directed to remediate by 2022-04-25; any remaining exposure should be handled as overdue emergency risk reduction.
How to confirm the fix worked
Confirm whether any deployed router matches the affected D-Link DIR-810L, DIR-820L/LW, DIR-826L, DIR-830L, or DIR-836L model families and hardware revisions. Verify that affected devices have been physically replaced or fully removed from service, since no fixed firmware versions are available. From an external network perspective, confirm that the router administrative interface and DDNS-related web functionality are not reachable from the internet. From an internal perspective, validate that management access is restricted to authorized administrative networks only. Review configuration backups or live settings to ensure remote management and unnecessary DDNS features are disabled. Where devices were replaced, confirm the replacement platform is vendor-supported and running current firmware.
Typical attack path
- Scan for internet-facing D-Link DIR-series router web administration interfaces or DDNS-related endpoints.
- Fingerprint the device model and firmware family to identify affected DIR-810L, DIR-820L/LW, DIR-826L, DIR-830L, or DIR-836L routers.
- Send a crafted unauthenticated DDNS request to the ncc2-handled web functionality containing shell command injection syntax.
- Execute a simple validation command, such as network callback, file write, or process execution, to confirm command execution.
- Download and execute a payload using built-in tools such as wget, curl, tftp, busybox, or shell redirection.
- Modify router settings, install malware, enroll the device in a botnet, intercept or redirect traffic, or use the router as a pivot point.
- Attempt cleanup by deleting temporary payloads, killing competing malware, or clearing volatile logs.
How to detect it
To determine whether exploitation already occurred, review router web access logs, firewall logs, DNS logs, DHCP logs, NetFlow, proxy logs, and upstream IDS/IPS telemetry for requests to DDNS-related router endpoints containing shell metacharacters or commands. Look for HTTP requests involving ncc2 or DDNS functions with characters such as semicolons, pipes, backticks, $(), URL-encoded command separators, or references to download utilities. Examine outbound network activity from the router management IP for unexpected connections to external HTTP, HTTPS, FTP, TFTP, IRC, Telnet, SSH, or high-numbered ports, especially shortly after suspicious inbound web requests. Inspect the device, where supported, for unknown running processes, unexpected files in temporary directories, changed startup scripts, altered DNS settings, unauthorized port forwards, new administrative users, changed firewall rules, and unusual CPU or bandwidth use. Because many embedded routers have limited logging and volatile storage, absence of local logs should not be treated as proof of non-exploitation; rely on upstream firewall, NAT, ISP, and network telemetry where possible.
- ncc2
- ddns
- ddns_check.ccp
- ccp_act=doCheck
- ddnsHostName=
- ddnsUsername=
- ddnsPassword=
- ;wget
- ; curl
- ;tftp
- ; busybox
- `wget
- `curl
- $(wget
- $(curl
- %3Bwget
- %3Bcurl
- %7Cwget
- %7Ccurl
- /tmp/
- /var/tmp/
- /dev/shm/
- chmod +x
- busybox wget
- busybox tftp
What your security team should do
- Immediately inventory edge routers and identify any D-Link DIR-810L, DIR-820L/LW, DIR-826L, DIR-830L, or DIR-836L devices still in use.
- Treat any affected device exposed to the internet as potentially compromised due to active exploitation, KEV listing, and high EPSS likelihood.
- Replace affected end-of-life devices with supported hardware; do not depend on firmware updates because no fixed versions are available.
- Until replacement, block untrusted access to the router management interface and DDNS endpoints at upstream firewalls or ISP edge controls.
- Disable remote administration and DDNS features where operationally possible.
- Rotate router administrative credentials and any credentials stored in router configuration after replacement or confirmed containment.
- Review DNS, DHCP, port forwarding, VPN, firewall, and remote management settings for unauthorized changes.
- Hunt for signs of botnet or loader activity, including suspicious outbound connections, repeated wget/curl/tftp activity, and unknown processes on the device.
- Segment networks behind affected routers and assess whether the compromised device could have exposed internal systems.
- Document exception handling and replacement timelines because the CISA KEV remediation due date has long passed.
The record
A Remote Command Execution (RCE) vulnerability exists in all series H/W revisions D-link DIR-810L, DIR-820L/LW, DIR-826L, DIR-830L, and DIR-836L routers via the DDNS function in ncc2 binary file. Note: DIR-810L, DIR-820L, DIR-830L, DIR-826L, DIR-836L, all hardware revisions, have reached their End of Life ("EOL") /End of Service Life ("EOS") Life-Cycle and as such this issue will not be patched.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-96376 Improper Neutralization of Special Elements used in an OS Command ("OS Command… CWE-78
- CVE-2026-113732 virtualenv is a tool for creating isolated virtual python environments. CWE-78
- CVE-2026-113776 virtualenv is a tool for creating isolated virtual python environments. CWE-78
- CVE-2026-113726 virtualenv is a tool for creating isolated virtual python environments. CWE-78
- CVE-2026-113725 virtualenv is a tool for creating isolated virtual python environments. CWE-78
- CVE-2026-113722 virtualenv is a tool for creating isolated virtual python environments. CWE-78
- CVE-2026-112943 launch-editor allows users to open files with line numbers in editor from Node.js. CWE-78
- CVE-2026-112900 Pillow is a Python imaging library. CWE-78