CVE-2015-2051 is a command injection (CWE-77) in the HNAP interface of the D-Link DIR-645 router: a crafted GetDeviceSettings SOAPAction header runs shell commands without a login on firmware 1.04b12 and earlier. NVD scores it 8.8. It is in CISA KEV, and because the DIR-645 is end-of-life, replace the router rather than patch it.
Vulnerability summary
CVSS base score
8.8
High severity
EPSS score (FIRST)
97.1%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
Yes
Listed as known exploited
Published
Vulnerability ID: CVE-2015-2051 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| D-Link DIR-645 Wired/Wireless Router, hardware Rev. Ax (A1) | cpe:2.3:o:dlink:dir-645_firmware:*:*:*:*:*:*:*:* | Firmware before 1.05b01 (NVD CPE versionEndExcluding 1.05b01); D-Link SAP10051 lists 1.04b12 and older as affected and patch 1.05b01 for A1. D-Link SAP10282 lists all DIR-645 hardware revisions as end of support since 2018-12-31 |
What does this mean for affected devices?
NVD describes the flaw as follows: "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." NVD's Primary score is CVSS v3.1 8.8 (CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), and CISA ADP gives the same 8.8 vector. The adjacent-network vector reflects a LAN-side attacker; the older NVD CVSS v2 score is 10.0 with a network vector. Both NVD and CISA ADP classify it as CWE-77, command injection. The record was published on 2015-02-23 with MITRE as the CNA (NVD, CVE record).
How does the HNAP injection work?
HNAP (Home Network Administration Protocol) is the SOAP interface D-Link routers expose at /HNAP1/. D-Link's own security announcement SAP10051, published on 13 February 2015, reproduces the proof of concept by Samuel Huntley: an unauthenticated POST to /HNAP1/ whose SOAPAction header carries GetDeviceSettings followed by a shell command, in that example telnetd -p 9656, which opens a telnet shell on the router. The same announcement covers a stack buffer overflow reached through the same header. The Metasploit module published on Exploit-DB was tested on a DIR-645 and lists other HNAP-based D-Link models reported as affected (DAP-1522, DAP-1650, DIR-300, DIR-600, DIR-815, DIR-860L, DIR-865L, DIR-880L) plus two TRENDnet models.
Which firmware is affected and is there a fix?
SAP10051 lists DIR-645 hardware A1 with firmware 1.04b12 and older as affected, with patch firmware 1.05b01 (updated 24 April 2015). NVD's CPE configuration matches that: dir-645_firmware before 1.05b01, with no hardware revision recorded. The later D-Link announcement SAP10282, last updated on 27 January 2022 and covering CVE-2015-2051 and CVE-2019-10891, lists the DIR-645 (all regions, all hardware revisions) as end of support since 31 December 2018 and recommends retiring and replacing such devices, because firmware development stops for products at end of support. So 1.05b01 closes the original bug on A1 units, but no firmware for later problems will follow.
What should you do with a DIR-645?
CISA added CVE-2015-2051 to the KEV catalog on 2022-02-10 with the required action "The impacted product is end-of-life and should be disconnected if still in use." (due date 2022-08-10; known ransomware campaign use: Unknown), and it is still listed as of 2026-11-19 in catalog version 2026.11.18 (CISA KEV). FIRST EPSS gives it 0.97101, the 99.89th percentile, in the 2026-11-18 dataset (FIRST EPSS). Replace the router. Until then, keep the web and HNAP interface unreachable from untrusted networks and isolate the router from equipment that matters. ENISA's 2025 threat report lists this CVE among old router flaws exploited against EU organisations; see our ENISA Threat Landscape 2025 guide. For the firmware-design fix, see how to fix command injection in embedded firmware. Related D-Link and router-SDK injections: CVE-2019-17621 (DIR-859 UPnP), CVE-2025-29635 (DIR-823X) and CVE-2014-8361 (Realtek SDK miniigd).
Evidence
- NVD: DIR-645 Rev. Ax firmware 1.04b12 and earlier, GetDeviceSettings action to HNAP interface; NVD Primary CVSS v3.1 8.8 AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; CISA ADP same 8.8; CVSS v2 10.0; CWE-77 from NVD and CISA ADP; CPE dir-645_firmware versionEndExcluding 1.05b01; published 2015-02-23; status Analyzed. — NVD
- D-Link SAP10051 (published 2015-02-13, last updated 2015-04-25): DIR-645 Rev. Ax command injection through HNAP and buffer overflow; PoC by Samuel Huntley with SOAPAction GetDeviceSettings and telnetd; affected A1 1.04b12 and older; patch 1.05b01 (updated 04/24/2015). — D-Link security announcement SAP10051
- D-Link SAP10282: legacy DIR and DAP models, all H/W revisions, all firmware versions, end of support/end of life, CVE-2019-10891 and CVE-2015-2051; DIR-645 all regions, all H/W revisions, end of support 12/31/2018, last updated 01/27/2022; recommends retiring and replacing; firmware development ceases. — D-Link support announcement SAP10282
- Exploit-DB 37171 (Metasploit module): blind OS command injection in the HNAP SOAP interface, tested on DIR-645, other reported models DAP-1522 revB, DAP-1650 revB, DIR-880L, DIR-865L, DIR-860L, DIR-815 revB, DIR-300 revB, DIR-600 revB, TEW-751DR, TEW-733GR; disclosure date Feb 13 2015. — Exploit-DB
- CVE record: state PUBLISHED, CNA MITRE, published 2015-02-23. — CVE.org
- KEV catalog version 2026.11.18: dateAdded 2022-02-10, required action 'The impacted product is end-of-life and should be disconnected if still in use.', due 2022-08-10, knownRansomwareCampaignUse Unknown; checked 2026-11-19. — CISA KEV
- EPSS 0.97101, percentile 0.99893, dataset 2026-11-18, read 2026-11-19. — FIRST EPSS

Related advisories
Sources
- NVD
- D-Link security announcement SAP10051: DIR-645 Rev. Ax command injection and buffer overflow, FW 1.04b12
- D-Link support announcement SAP10282: legacy DIR and DAP models end of life, CVE-2019-10891 and CVE-2015-2051
- Exploit-DB 37171: D-Link devices HNAP SOAPAction-header command execution (Metasploit)
- CVE.org record CVE-2015-2051 (CNA: MITRE)
- CISA KEV
- FIRST EPSS
Frequently asked questions
Which D-Link firmware fixes CVE-2015-2051?
D-Link's announcement SAP10051 lists patch firmware 1.05b01 for DIR-645 hardware A1, replacing 1.04b12 and older, and NVD's CPE marks versions before 1.05b01 as affected. D-Link has listed every DIR-645 hardware revision as end of support since 2018-12-31 (per D-Link SAP10051 and SAP10282).
What does CISA require for CVE-2015-2051?
CISA KEV, which added it on 2022-02-10, says the impacted product is end-of-life and should be disconnected if still in use; the due date for US federal agencies was 2022-08-10. Known ransomware campaign use is marked Unknown (per CISA KEV catalog version 2026.11.18, checked 2026-11-19).
Can CVE-2015-2051 be exploited without a password?
Yes. The proof of concept in D-Link SAP10051 sends an unauthenticated POST to /HNAP1/ with a shell command appended to the GetDeviceSettings SOAPAction header. NVD rates it with an adjacent-network vector and no privileges required, CVSS v3.1 8.8 (per NVD and D-Link SAP10051).
Are other D-Link models affected by the same HNAP flaw?
The Metasploit module on Exploit-DB lists DAP-1522, DAP-1650, DIR-300, DIR-600, DIR-815, DIR-860L, DIR-865L and DIR-880L as reported affected. D-Link's SAP10282 lists those models as end of life under CVE-2015-2051 and CVE-2019-10891; NVD's CPE covers only the DIR-645 (per Exploit-DB 37171, D-Link SAP10282 and NVD).
Questions about this page?