D-Link DIR-645 Router
D-Link DIR-645 Router Remote Code Execution Vulnerability
Edge device · Router / network deviceknown edge product: D-Link DIR-645 Router D-Link DIR-645 Router Remote (high confidence)
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.
Timeline
Days relative to CVE publicationFirst public PoC 97 days after publication; added to CISA KEV 7.0 years after publication. First PoC: D-Link Devices - HNAP SOAPAction-Header Command Execution (Metasploit) (Exploit-DB, 1 Jun 2015).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Walnut1337/Command-Injection-DIR-868L | 28 Sep 2026 +11.6 y | 1 | PoC via PoC Index |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| CVE record (tagged exploit) | 37171 | unknown | 14 Nov 2026 |
| Exploit-DB | D-Link Devices - HNAP SOAPAction-Header Command Execution (Metasploit) | 1 Jun 2015 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: D-Link Devices HNAP SOAPAction-Header Command Execution (exploit/linux/http/dlink_hnap_header_exec_noauth) | unknown | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /HNAP1/
- Key headers
Soapaction: "http://purenetworks.com/HNAP1/GetDeviceSettings/; sleep 10;"Soapaction: $1- Seen in
- 1 repo: Walnut1337/Command-Injection-DIR-868L
- Evidence
- Walnut1337/Command-Injection-DIR-868L/README.md:33 Walnut1337/Command-Injection-DIR-868L/analysis/root-cause.md:81 Walnut1337/Command-Injection-DIR-868L/poc/hnap_http_poc.sh:8
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/HNAP1/(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2015-2051 D-Link DIR-645 Router exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/HNAP1/"; http.header; content:"Soapaction: |22|http://purenetworks.com/HNAP1/GetDeviceSettings/|3b| sleep 10|3b||22|"; nocase; http.header; content:"Soapaction: $1"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2015-2051; classtype:web-application-attack; sid:9546207; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: D-Link DIR-645 Router exploit attempt (CVE-2015-2051)
id: gg-pocmon-cve-2015-2051-9546207
status: experimental
description: Request pattern taken from public PoCs for CVE-2015-2051. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2015-2051
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/HNAP1/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2015.2051