nday
CVE-2016-6563

D-Link DIR routers contain a stack-based buffer overflow in the HNAP Login action

D-Link / DIR-823, DIR-822, DIR-818L(W), DIR-895L, DIR-890L, DIR-885L +3

A public PoC appeared 599 days before the CVE record was published. nday has no fix record for it yet; that does not mean no patch exists. Listed by 2 of 4 PoC sources: exploitdb and metasploit. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

buffer overflow / out-of-bounds write
CWE-119, stated by NVD's analystsCWE-121, stated by the CNA certcc and NVD, republishing [email protected]
remote, unauthenticated
AV:N, PR:N, UI:N in CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (CVSS 3.0) from NVD's analysts
network
AV:N in CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (CVSS 3.0) from NVD's analysts
no authentication required
PR:N in CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (CVSS 3.0) from NVD's analysts
no user interaction
UI:N in CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (CVSS 3.0) from NVD's analysts
Metasploit
Metasploit modules exploit/linux/http/dlink_hnap_login_bof
Exploit-DB
Exploit-DB entries 40805
router / switch
affected products in the CVE record: D-Link · DIR-818L(W), D-Link · DIR-822, D-Link · DIR-823, D-Link · DIR-850L, D-Link · DIR-868L, D-Link · DIR-880L, D-Link · DIR-885L, D-Link · DIR-890L, D-Link · DIR-895LCPE names NVD's analysts give as vulnerable: o:dlink:dir-818l(w)_firmware, o:dlink:dir-822_firmware, o:dlink:dir-823_firmware, o:dlink:dir-850l_firmware, o:dlink:dir-868l_firmware, o:dlink:dir-880l_firmware, o:dlink:dir-885l_firmware, o:dlink:dir-890l_firmware, o:dlink:dir-895l_firmwarenday's type rule d-link:router
stage
POC
disclosed
cvss
no score yet

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2018-07-13T20:00Z
PATpatch
no record yet
ANAanalysis
no record yet
POCPoC
2016-11-21, date only
metasploit
ITWexploited
no record yet
KEVKEV
no record yet

Summary

Processing malformed SOAP messages when performing the HNAP Login action causes a buffer overflow in the stack in some D-Link DIR routers. The vulnerable XML fields within the SOAP body are: Action, Username, LoginPassword, and Captcha. The following products are affected: DIR-823, DIR-822, DIR-818L(W), DIR-895L, DIR-890L, DIR-885L, DIR-880L, DIR-868L, and DIR-850L.

Original text of the CVE record (cvelist), shown as published.

Event log

2016-11-21date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “D-Link DIR-Series Routers - 'HNAP Login' Unauthenticated Stack Buffer Overflow (Metasploit)” (EDB-40805). Verified by Exploit-DB.

src exploitdb 40805 · nday , bulk import · raw
{
  "id": 26935,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/40805",
  "occurred_at": "2016-11-21T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "40805",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/40805",
    "file": "exploits/multiple/remote/40805.rb",
    "kind": "exploit",
    "tags": [
      "Metasploit Framework (MSF)"
    ],
    "type": "remote",
    "title": "D-Link DIR-Series Routers - 'HNAP Login' Unauthenticated Stack Buffer Overflow (Metasploit)",
    "author": "Metasploit",
    "edb_id": 40805,
    "cve_ids": [
      "CVE-2016-6563"
    ],
    "platform": "multiple",
    "verified": true,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2016-11-21",
    "date_updated": "2017-11-16",
    "date_published": "2016-11-21"
  }
}
+DISdisclosed

CVE record published by certcc.

src cvelist · nday , bulk import · raw
{
  "id": 69532,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2016-6563",
  "occurred_at": "2018-07-13T20:00:00Z",
  "observed_at": "2026-11-13T02:01:12.554432Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "state": "PUBLISHED",
    "date_published": "2018-07-13T20:00:00.000Z",
    "assigner_short_name": "certcc"
  }
}
time unknownsource gave no time
+POCpublic PoC

Metasploit has module exploit/linux/http/dlink_hnap_login_bof (Dlink DIR Routers Unauthenticated HNAP Login Stack Buffer Overflow). The source gives no release time for the module.

src metasploit exploit/linux/http/dlink_hnap_login_bof · nday , bulk import · raw
{
  "id": 50483,
  "type": "poc_published",
  "source": "metasploit",
  "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/dlink_hnap_login_bof.rb",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:51.477477Z",
  "is_backfill": true,
  "dedupe_key": "exploit/linux/http/dlink_hnap_login_bof",
  "detail": {
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/dlink_hnap_login_bof.rb",
    "kind": "msf_module",
    "path": "/modules/exploits/linux/http/dlink_hnap_login_bof.rb",
    "rank": 600,
    "check": true,
    "title": "Dlink DIR Routers Unauthenticated HNAP Login Stack Buffer Overflow",
    "cve_ids": [
      "CVE-2016-6563"
    ],
    "fullname": "exploit/linux/http/dlink_hnap_login_bof",
    "rank_name": "excellent",
    "confidence": "curated",
    "module_type": "exploit",
    "module_last_modified": "2026-04-02 17:30:43 +0000",
    "vuln_disclosure_date": "2016-11-07"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.