← Vulnerability feed

Vulnerability record · CVE-2015-2051 · published 23 February 2015

CVE-2015-2051: D-Link DIR-645 Router HNAP Command Injection

Dlink · Dir 645 Firmware

The D-Link DIR-645 wired/wireless router (Rev. Ax, firmware 1.04b12 and earlier) fails to sanitize input to the HNAP interface, allowing command injection through a GetDeviceSettings action. Because the flaw permits arbitrary command execution on the device, it exposes the router and everything behind it to full compromise.

8.8 CVSS 3.1 High CISA KEV since 10 Feb 2022 EPSS 97% · top 0.1% CWE-77 · Command injection
8.8CVSS 3.1 base score, v2 10.0
97%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
1Affected product versions listed by NVD
10References, 4 tagged exploit
17 Jun 2026Last modified by NVD

Description

The D-Link DIR-645 Wired/Wireless Router Rev. Ax with firmware 1.04b12 and earlier allows remote attackers to execute arbitrary commands via a GetDeviceSettings action to the HNAP interface.

CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 16 September 2026. Confidence: high.

critical priorityThe flaw is remotely exploitable without authentication, has public exploit code, is listed in CISA KEV, and carries a near-certain EPSS score, making it an urgent risk for any device still in service.

What it is

The D-Link DIR-645 wired/wireless router (Rev. Ax, firmware 1.04b12 and earlier) fails to sanitize input to the HNAP interface, allowing command injection through a GetDeviceSettings action. Because the flaw permits arbitrary command execution on the device, it exposes the router and everything behind it to full compromise.

Impact

An attacker can execute arbitrary commands on the router with the privileges of the affected service, gaining control of the device and a foothold on the network. This can lead to traffic interception, credential theft, and lateral movement into connected systems.

Attack surface

The vulnerability is reached over the network via the router's HNAP interface, which is exposed on the adjacent network segment per the CVSS vector (AV:A). No authentication or user interaction is required (PR:N, UI:N).

Exploitation

CISA added this to the Known Exploited Vulnerabilities catalog on 2022-02-10, and EPSS gives a 30-day exploitation probability of 0.971 (99.9th percentile). Public exploit code exists (Exploit-DB 37171), and the vendor advisory is tagged as an exploit reference.

What to do

  • Apply the vendor firmware update if a supported version exists; otherwise replace the device, as the product is end-of-life.
  • Disconnect or retire any D-Link DIR-645 still in use, per CISA's required action for this KEV entry.
  • If the device cannot be removed immediately, isolate it on a dedicated network segment and block HNAP access from untrusted networks.
  • Disable remote administration and UPnP on the router where possible to reduce exposure.
  • Monitor for and block outbound connections from the router to unknown external hosts.

Detection

  • Inspect network traffic for HNAP requests containing GetDeviceSettings actions with shell metacharacters or unexpected command strings.
  • Monitor router logs and network flows for anomalous outbound connections originating from the device.
  • Use an asset inventory to identify any D-Link DIR-645 devices still active on the network and flag them for remediation.
  • Watch for signs of router configuration changes, new admin accounts, or DNS settings modifications.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Exploitation in the wild

CISA added CVE-2015-2051 to the Known Exploited Vulnerabilities catalog on 10 February 2022 as "D-Link DIR-645 Router Remote Code Execution Vulnerability". Required action: The impacted product is end-of-life and should be disconnected if still in use. Federal deadline 10 August 2022.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2015-2051 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2018-25115Dlink dir-110 firmware os command injection vulnerabilityMultiple D-Link DIR-series routers, including DIR-110, DIR-412, DIR-600, DIR-610, DIR-615, DIR-645, and DIR-815 firmware version 1.03, contain a vuln…EPSS 10%10.0CVE-2015-2052Dlink dir-645 firmware memory buffer overflow vulnerabilityStack-based buffer overflow in the DIR-645 Wired/Wireless Router Rev. Ax with firmware 1.04b12 and earlier allows remote attackers to execute arbitra…EPSS 5.2%9.8CVE-2023-36089Dlink dir-645 firmware incorrect authorization vulnerabilityAuthentication Bypass vulnerability in D-Link DIR-645 firmware version 1.03 allows remote attackers to gain escalated privileges via function phpcgi_…EPSS 1.5%9.8CVE-2022-46475Dlink dir-645 firmware out-of-bounds write vulnerabilityD-Link DIR 645A1 1.06B01_Beta01 was discovered to contain a stack overflow via the service= variable in the genacgi_main function.EPSS 9.5%9.8CVE-2022-32092Dlink dir-645 firmware os command injection vulnerabilityD-Link DIR-645 v1.03 was discovered to contain a command injection vulnerability via the QUERY_STRING parameter at __ajax_explorer.sgi.EPSS 5.8%9.8CVE-2021-43722Dlink dir-645 firmware out-of-bounds write vulnerabilityD-Link DIR-645 1.03 A1 is vulnerable to Buffer Overflow. The hnap_main function in the cgibin handler uses sprintf to format the soapaction header on…EPSS 3.2%9.8CVE-2013-7471Dlink dir-300 firmware command injection vulnerabilityAn issue was discovered in soap.cgi?service=WANIPConn1 on D-Link DIR-845 before v1.02b03, DIR-600 before v2.17b01, DIR-645 before v1.04b11, DIR-300 r…EPSS 24%6.1CVE-2020-25786Dlink dir-803 firmware cross-site scripting vulnerabilitywebinc/js/info.php on D-Link DIR-816L 2.06.B09_BETA and DIR-803 1.04.B02 devices allows XSS via the HTTP Referer header. NOTE: This vulnerability onl…EPSS 0.99%

Source: NIST National Vulnerability Database (record CVE-2015-2051), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.