Security Advisory

CVE-2019-17621: D-Link DIR-859 UPnP gena.cgi RCE

Last updated:
  • CVE-2019-17621

CVE-2019-17621 is an unauthenticated command injection in D-Link's UPnP eventing handler: a crafted SUBSCRIBE request to /gena.cgi on the DIR-859 router runs system commands as root from the local network. D-Link extended its advisory to 12 more DIR models, and CISA lists the flaw as exploited.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

90.6%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2019-17621 · Source: NVD

Affected components

ComponentCPEVersion range
D-Link DIR-859 Rev. Ax routercpe:2.3:o:dlink:dir-859_firmware:*:*:*:*:*:*:*:*firmware v1.06b01_Beta01 and older; hotfix v1.07b03 (D-Link SAP10146, SAP10147)
D-Link DIR-818Lx, DIR-822, DIR-823, DIR-865L, DIR-868L, DIR-869, DIR-880L, DIR-885L/R, DIR-890L/R, DIR-895L/R—per D-Link SAP10147, e.g. DIR-868L Ax v1.12b04 and older (hotfix v1.20b07); DIR-865L v1.07b01 and older end of life, no fix

What does this mean for affected devices?

CVE-2019-17621 is an OS command injection (CWE-78) in D-Link router firmware. NVD's record says "the UPnP endpoint URL /gena.cgi in the D-Link DIR-859 Wi-Fi router 1.05 and 1.06B01 Beta01 allows an Unauthenticated remote attacker to execute system commands as root, by sending a specially crafted HTTP SUBSCRIBE request to the UPnP service when connecting to the local network". NVD scores it 9.8 under CVSS v3.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD). The handler is the GENA eventing code that every UPnP device runs, the same SUBSCRIBE path that CVE-2020-12695 (CallStranger) abuses at the protocol level.

D-Link's SAP10146 says researchers from Telefónica Chile reported the flaw on 2019-10-16 against DIR-859 firmware v1.06b01_Beta01, notes that exploitation needs LAN-side access, and says the scope was expanded on 2019-12-26. The follow-up SAP10147 lists the models and fixed firmware. DIR-859 Ax (v1.06b01_Beta01 and older) gets hotfix v1.07b03, DIR-868L Ax (v1.12b04 and older) gets v1.20b07, DIR-880L Ax (v1.08b04 and older) gets v1.20b03beta01, DIR-890L/R (v1.11b01_Beta01 and older) gets v1.21b04, DIR-895L/R (v1.12b10 and older) gets v1.21b05, and DIR-818Lx, DIR-822, DIR-823, DIR-869 and DIR-885L/R also have hotfixes. DIR-865L (v1.07b01 and older) is end of life with no fix. D-Link notes that some routers must be updated twice to close the issue, and that many listed models have reached end of support.

CISA added the CVE to the KEV catalog on 2023-06-29 with a due date of 2023-07-20, as "D-Link DIR-859 Router Command Execution Vulnerability", with the required action to apply updates per vendor instructions or discontinue use of the product (CISA KEV). FIRST EPSS gives it 0.90615, the 99.81st percentile, in the 2026-11-15 dataset (FIRST EPSS). Treat it as critical on affected D-Link firmware and as a pattern to test for in any vendor GENA handler.

Owners should install the hotfix for their model and hardware revision, or replace the DIR-865L and other end-of-life units. Device makers should never pass SUBSCRIBE headers such as CALLBACK or the request path to a shell, and should keep UPnP off the WAN interface. Our MiniUPnPd and UPnP vulnerabilities guide shows how to find vendor UPnP handlers in an image, and our command injection fix guide covers replacing shell calls in firmware. For the Realtek SDK flaw in the same class, see CVE-2014-8361.

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

  • /gena.cgi in DIR-859 1.05 and 1.06B01 Beta01 allows unauthenticated root command execution via crafted SUBSCRIBE; NVD CVSS v3.1 9.8; CWE-78. — NVD
  • SAP10146: reported 2019-10-16 against DIR-859 v1.06b01_Beta01; LAN-side access needed; scope expanded 2019-12-26. — D-Link SAP10146
  • SAP10147: affected models and hotfixes, e.g. DIR-859 v1.07b03, DIR-868L Ax v1.20b07, DIR-890L/R v1.21b04; DIR-865L end of life; some routers need two updates. — D-Link SAP10147
  • In the CISA KEV catalog (version 2026.11.13): added 2023-06-29, due 2023-07-20. — CISA KEV
  • EPSS 0.90615 (99.81st percentile), dataset 2026-11-15, read 2026-11-16. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. D-Link SAP10146: DIR-859 CVE-2019-17621
  3. D-Link SAP10147: DIR series CVE-2019-17621 and related CVEs
  4. CISA KEV
  5. FIRST EPSS

Frequently asked questions

Can CVE-2019-17621 be exploited from the internet?

D-Link's SAP10146 says a malicious user needs LAN-side access, and NVD's description refers to an attacker connecting to the local network. A router that exposes UPnP on its WAN interface widens that, so keep UPnP off WAN either way.

Which D-Link routers are affected by CVE-2019-17621?

The DIR-859 Rev. Ax with firmware v1.06b01_Beta01 and older, and, per D-Link SAP10147, the DIR-818Lx, DIR-822, DIR-823, DIR-865L, DIR-868L, DIR-869, DIR-880L, DIR-885L/R, DIR-890L/R and DIR-895L/R in the listed firmware versions.

Is there a fix for every affected model?

No. SAP10147 lists hotfixes for most models, such as v1.07b03 for the DIR-859 and v1.20b07 for the DIR-868L Ax, but the DIR-865L is end of life with no fix, and D-Link says some routers must be updated twice (per D-Link SAP10147).

Is CVE-2019-17621 in the CISA KEV catalog?

Yes. CISA added it on 2023-06-29 with a due date of 2023-07-20. FIRST EPSS gives it 0.90615, the 99.81st percentile, in the 2026-11-15 dataset (per CISA KEV and FIRST EPSS).