← Vulnerability feed

Vulnerability record · CVE-2016-6563 · published 13 July 2018

CVE-2016-6563: D-Link DIR routers stack buffer overflow via HNAP SOAP login

Dlink · Dir 823 Firmware

Malformed SOAP messages sent to the HNAP Login action overflow a stack buffer in several D-Link DIR router models. The vulnerable XML fields are Action, Username, LoginPassword, and Captcha. Because the flaw is remotely reachable without credentials, it exposes affected routers to full compromise.

9.8 CVSS 3.0 Critical EPSS 80% · top 0.4% CWE-121 · Stack-based buffer overflowCWE-119 · Memory buffer overflow
9.8CVSS 3.0 base score, v2 10.0
80%EPSS exploitation probability, 30 days
NoNot in CISA KEV
9Affected product versions listed by NVD
8References, 4 tagged exploit
17 Jun 2026Last modified by NVD

Description

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.

CVSS:3.0/AV:N/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 18 September 2026. Confidence: high.

critical priorityCVSS 9.8 with no authentication or interaction required, public exploit code, and very high EPSS make this an urgent risk for any exposed affected router.

What it is

Malformed SOAP messages sent to the HNAP Login action overflow a stack buffer in several D-Link DIR router models. The vulnerable XML fields are Action, Username, LoginPassword, and Captcha. Because the flaw is remotely reachable without credentials, it exposes affected routers to full compromise.

Impact

An attacker can corrupt stack memory and potentially execute arbitrary code with the router's privileges, gaining control of the device and the network behind it.

Attack surface

Reached over the network through the HNAP SOAP interface; the CVSS vector shows no privileges and no user interaction required, so the request can be sent directly to the router's web service.

Exploitation

Public exploit code exists in Exploit-DB and a Full Disclosure post, and EPSS is 0.797 (99.6th percentile), indicating high likelihood of exploitation; the CVE is not listed in CISA KEV.

What to do

  • Apply the vendor firmware update for the affected DIR models; if no fix exists, replace or retire the device.
  • Disable remote administration and block HNAP/SOAP access from untrusted networks, restricting it to trusted management hosts.
  • Segment router management interfaces from user and guest networks, and place the device behind a firewall that filters inbound access.
  • Monitor vendor advisories for these end-of-life models and plan hardware replacement where patching is unavailable.

Detection

  • Inspect HTTP requests to the HNAP endpoint for oversized or malformed Action, Username, LoginPassword, or Captcha XML fields.
  • Alert on router crashes, reboots, or unexpected process restarts that follow HNAP login traffic.
  • Log and review inbound connections to the router's management interface from external or unusual source addresses.

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

Affected products

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

References

LinkTags
http://seclists.org/fulldisclosure/2016/Nov/38 ExploitMailing ListThird Party Advisory
http://www.securityfocus.com/bid/94130 Third Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/40805/ ExploitThird Party AdvisoryVDB Entry
https://www.kb.cert.org/vuls/id/677427 Third Party AdvisoryUS Government Resource
http://seclists.org/fulldisclosure/2016/Nov/38 ExploitMailing ListThird Party Advisory
http://www.securityfocus.com/bid/94130 Third Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/40805/ ExploitThird Party AdvisoryVDB Entry
https://www.kb.cert.org/vuls/id/677427 Third Party AdvisoryUS Government Resource

Track CVE-2016-6563 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.

9.8CVE-2019-17621D-Link DIR-859 UPnP gena.cgi unauthenticated command injectionThe UPnP endpoint /gena.cgi on D-Link DIR-859 firmware 1.05 and 1.06B01 Beta01 fails to sanitize input in an HTTP SUBSCRIBE request, allowing OS comm…KEVEPSS 90%analysed9.8CVE-2018-6530D-Link DIR router soap.cgi OS command injectionsoap.cgi (soapcgi_main in cgibin) on several D-Link DIR router models fails to sanitize the service parameter, allowing OS command injection. The fla…KEVEPSS 97%analysed9.8CVE-2025-55583Dlink dir-868l firmware os command injection vulnerabilityD-Link DIR-868L B1 router firmware version FW2.05WWB02 contains an unauthenticated OS command injection vulnerability in the fileaccess.cgi component…EPSS 7.0%9.8CVE-2023-51984Dlink dir-822 firmware os command injection vulnerabilityD-Link DIR-822+ V1.0.2 was found to contain a command injection in SetStaticRouteSettings function. allows remote attackers to execute arbitrary comm…EPSS 2.0%9.8CVE-2023-51987Dlink dir-822 firmware missing authentication for critical function vulnerabilityD-Link DIR-822+ V1.0.2 contains a login bypass in the HNAP1 interface, which allows attackers to log in to administrator accounts with empty password…EPSS 0.92%9.8CVE-2023-49004Dlink dir-850l firmware code injection vulnerabilityAn issue in D-Link DIR-850L v.B1_FW223WWb01 allows a remote attacker to execute arbitrary code via a crafted script to the en parameter.EPSS 1.9%9.8CVE-2023-39667Dlink dir-868l firmware classic buffer overflow vulnerabilityD-Link DIR-868L fw_revA_1-12_eu_multi_20170316 was discovered to contain a buffer overflow via the param_2 parameter in the FUN_0000acb4 function.EPSS 1.4%9.8CVE-2023-39668Dlink dir-868l firmware classic buffer overflow vulnerabilityD-Link DIR-868L fw_revA_1-12_eu_multi_20170316 was discovered to contain a buffer overflow via the param_2 parameter in the inet_ntoa() function.EPSS 1.4%

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