Security Advisory

CVE-2021-45382: D-Link DIR-8xxL DDNS RCE

Last updated:
  • CVE-2021-45382

CVE-2021-45382 is a remote command execution flaw in the DDNS function of the ncc2 binary on D-Link DIR-810L, DIR-820L/LW, DIR-826L, DIR-830L and DIR-836L routers. NVD scores it 9.8 and CISA lists it in KEV. All five models are end of life and D-Link will not patch them; retire and replace the router.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

97.8%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2021-45382 · Source: NVD

Affected components

ComponentCPEVersion range
D-Link DIR-810Lcpe:2.3:o:dlink:dir-810l_firmware:-:*:*:*:*:*:*:*All hardware revisions and firmware; end of support 2018-02-28, no fix, retire and replace (D-Link SAP10264)
D-Link DIR-820L / DIR-820LWcpe:2.3:o:dlink:dir-820l_firmware:-:*:*:*:*:*:*:*All hardware revisions and firmware; end of support 2017-11-01, no fix, retire and replace (D-Link SAP10264)
D-Link DIR-826Lcpe:2.3:o:dlink:dir-826l_firmware:-:*:*:*:*:*:*:*All hardware revisions and firmware; end of support 2017-11-01, no fix, retire and replace (D-Link SAP10264)
D-Link DIR-830Lcpe:2.3:o:dlink:dir-830l_firmware:-:*:*:*:*:*:*:*All hardware revisions and firmware; end of support 2018-02-28, no fix, retire and replace (D-Link SAP10264)
D-Link DIR-836Lcpe:2.3:o:dlink:dir-836l_firmware:-:*:*:*:*:*:*:*All hardware revisions and firmware; end of support 2017-11-01, no fix, retire and replace (D-Link SAP10264)

What does this mean for affected devices?

CVE-2021-45382 is an OS command injection (CWE-78) in the dynamic DNS (DDNS) function of the ncc2 binary in several D-Link consumer routers. The CVE record says it affects "all series H/W revisions" of the DIR-810L, DIR-820L/LW, DIR-826L, DIR-830L and DIR-836L and that, because these models are end of life, "this issue will not be patched" (NVD, CVE record). NVD's Primary score is 9.8, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, and 10.0 in NVD CVSS v2; CISA's ADP entry gives the same 9.8 vector.

Which D-Link routers are affected?

D-Link's announcement SAP10264, published 20 December 2021, credits the report to researcher huanBIn Ruan and lists five models, all hardware revisions, worldwide: DIR-810L (end of support 2018-02-28), DIR-820L/LW (2017-11-01), DIR-826L (2017-11-01), DIR-830L (2018-02-28) and DIR-836L (2017-11-01). NVD's CPE configuration marks the firmware of all five, with no version boundary, as vulnerable.

How do you fix CVE-2021-45382?

There is no fixed firmware. D-Link says that when products reach end of life "all firmware development for these products cease" and that it "strongly recommends that this product be retired". For US owners who keep one running anyway, it advises the most recent firmware, a frequently changed unique admin password and WiFi encryption; none of these removes the injection. CISA's KEV entry is blunter: the product "is end-of-life and should be disconnected if still in use." Until the router is replaced, keep its management interface off the internet, as covered in our guide to internet-exposed management interfaces. For firmware teams, the command injection fix guide explains how input such as a DDNS hostname should reach the shell, if at all.

Is CVE-2021-45382 exploited?

Yes. CISA added it to the KEV catalog on 2022-04-04 as "D-Link Multiple Routers Remote Code Execution Vulnerability", with a due date of 2022-04-25; known ransomware campaign use is Unknown. It is listed as of 2026-11-24 (catalog version 2026.11.23). In October 2023, D-Link's SAP10358 named CVE-2021-45382 among the four D-Link CVEs used by IZ1H9, a Mirai botnet variant, and repeated that the affected routers have no fixed firmware. FIRST EPSS gives it 0.97836, the 99.91st percentile, in the 2026-11-23 dataset (FIRST EPSS). The DIR-820L carries two more KEV entries, CVE-2022-26258 and CVE-2023-25280; the DIR-823X injection CVE-2025-29635 is another end-of-life D-Link router flaw used by a Mirai variant.

How to fix this class of issueThis advisory's weakness class is Command injection. Our practical guide covers how to detect, fix, verify and disclose it: How to fix command injection in embedded firmware.

Evidence

  • NVD (Analyzed, read 2026-11-24): [email protected] Primary CVSS 3.1 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, CVSS v2 Primary 10.0; CISA-ADP Secondary 9.8; CWE-78; CPEs dir-810l/820l/820lw/826l/830l/836l firmware, no version; published 2022-02-17; description notes EOL, will not be patched. — NVD
  • D-Link SAP10264 (published 2021-12-20): DIR-810L, 820L/LW, 826L, 830L, 836L all H/W revisions EOL/EOS; end of support dates 02/28/2018, 11/01/2017, 11/01/2017, 02/28/2018, 11/01/2017; reporter huanBIn Ruan; DDNS function in ncc2 command injection; recommends retire and replace. — D-Link
  • D-Link SAP10358 (published 2023-10-14): IZ1H9 Mirai variant references CVE-2021-45382 affecting DIR-810L/820L/826L/830L/836L; fixed firmware Not Available. — D-Link
  • CISA KEV catalog 2026.11.23: dateAdded 2022-04-04, due 2022-04-25, knownRansomwareCampaignUse Unknown, CWE-78; required action: end-of-life, disconnect if still in use; checked 2026-11-24. — CISA KEV
  • EPSS 0.97836, percentile 0.99908, dataset 2026-11-23, read 2026-11-24. — FIRST EPSS
  • CVE record PUBLISHED 2022-02-17 (assigner MITRE). — CVE.org

Related advisories

Sources

  1. NVD
  2. D-Link SAP10264: DIR-810L/820L/826L/830L/836L, End of Support / End of Life, Remote Command Execution
  3. D-Link SAP10358: Malware Botnet IZ1H9, Mirai DDoS Malware Variant
  4. CVE.org record CVE-2021-45382
  5. CISA KEV
  6. FIRST EPSS

Frequently asked questions

Which D-Link routers are affected by CVE-2021-45382?

All hardware revisions of the DIR-810L, DIR-820L/LW, DIR-826L, DIR-830L and DIR-836L, worldwide. Their end-of-support dates run from 2017-11-01 to 2018-02-28 (per the CVE record and D-Link SAP10264).

Is there a firmware update for CVE-2021-45382?

No. The models are end of life, D-Link says the issue will not be patched and recommends retiring and replacing the router. CISA's KEV entry says the product should be disconnected if still in use (per D-Link SAP10264 and CISA KEV).

Is CVE-2021-45382 exploited in the wild?

Yes. CISA added it to the KEV catalog on 2022-04-04, and it is listed as of 2026-11-24 (catalog version 2026.11.23) with ransomware use marked Unknown. D-Link names it among the CVEs used by the IZ1H9 Mirai variant (per CISA KEV and D-Link SAP10358).

How likely is exploitation according to EPSS?

FIRST EPSS gives CVE-2021-45382 a score of 0.97836, the 99.91st percentile, in the 2026-11-23 dataset, which puts it among the most likely CVEs to see exploitation activity (per FIRST EPSS).