CVE-2016-6563: D-Link DIR routers contain a stack-based buffer overflow in the HNAP Login action
CVE-2016-6563 is not on CISA's Known Exploited Vulnerabilities list as of 4 December 2026, but EPSS estimates a 79.5% chance of exploitation attempts in the next 30 days, higher than 99.6% of all scored vulnerabilities. Public exploit code is available: 1 Metasploit module and 1 Exploit-DB entry.
- Exploited in real attacks
- Not confirmed by CISA as of 4 December 2026
- Public exploit code
- 1 Metasploit module and 1 Exploit-DB entry
- Chance of exploitation (EPSS)
- 79.5% in the next 30 days, higher than 99.6% of scored vulnerabilities. Scored 5 December 2026
- Affects
- D-Link DIR-823
- Type of flaw
- Stack-based buffer overflow (CWE-121)
- Published
- 13 July 2018
What it is
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.
Description from the CVE record.
Is CVE-2016-6563 being exploited?
CVE-2016-6563 is not in CISA's catalog, which currently lists 1,814 vulnerabilities. That does not mean it is safe. The catalog only includes cases CISA has confirmed, and the EPSS model, which predicts exploitation from observed attack traffic and other signals, rates this one at 79.5%. Fewer than 1 in 100 scored vulnerabilities rate higher.
Public exploit code
These are public references that anyone, including an attacker, can find. Their existence lowers the skill needed to use the flaw.
| Source | Entry | Published |
|---|---|---|
| Metasploit | Dlink DIR Routers Unauthenticated HNAP Login Stack Buffer Overflow | |
| Exploit-DB | D-Link DIR-Series Routers - 'HNAP Login' Unauthenticated Stack Buffer Overflow (Metasploit) | 21 November 2016 |
Affected products
- D-Link DIR-823
- D-Link DIR-822
- D-Link DIR-818L(W)
- D-Link DIR-895L
- D-Link DIR-890L
- D-Link DIR-885L
- D-Link DIR-880L
- D-Link DIR-868L
- D-Link DIR-850L
From the CVE record. Check the vendor advisory for the full list of fixed versions.
What to do
Apply the vendor's fix or mitigation, using the advisories in the sources below. Until it is patched, limit who can reach the affected system, especially from the internet.
How to check whether you are exposed
- Find every copy. List each place D-Link DIR-823 runs, including test systems and anything set up outside IT.
- Compare versions. Match what you find against the affected versions in the vendor advisory.
- Check reachability. An affected system that faces the internet is urgent; one reachable only from inside still matters once an attacker has a foothold.
- Assume low-skill attackers can use it. A Metasploit module exists, which packages the attack into a standard tool.
HackDrill
Find out whether this is reachable in your systems.
A version number tells you a system is affected. A hacking drill tells you whether an attacker can actually get in through a flaw like this one in DIR-823. HackDrill's AI agents attack your product, infrastructure, network and cloud the way modern attackers do, and show you the real, exploitable gaps so you can fix them first.
Other tracked vulnerabilities in D-Link products
| CVE | What it affects | Status | EPSS | Published |
|---|---|---|---|---|
| CVE-2025-29635 | D-Link DIR-823X | Public exploit | 87.9% | 25 March 2025 |
| CVE-2022-37055 | D-Link Routers | No public exploit found | 57.4% | 28 August 2022 |
| CVE-2020-25078 | D-Link DCS-2530L and DCS-2670L Devices | Public exploit | 97.5% | 2 September 2020 |
| CVE-2020-25079 | D-Link DCS-2530L and DCS-2670L Devices | No public exploit found | 54.0% | 2 September 2020 |
| CVE-2022-40799 | D-Link DNR-322L | No public exploit found | 33.7% | 29 November 2022 |
| CVE-2024-0769 | D-Link DIR-859 Router | No public exploit found | 82.7% | 21 January 2024 |
Sources
- CVE record for CVE-2016-6563
- NVD entry
- FIRST EPSS, scores dated 5 December 2026
- www.exploit-db.com (exploit, x_refsource_EXPLOIT-DB)
- www.kb.cert.org (third-party-advisory, x_refsource_CERT-VN)
- www.securityfocus.com (vdb-entry, x_refsource_BID)
- seclists.org (mailing-list, x_refsource_FULLDISC)
Machine-readable: /api/cve/CVE-2016-6563.json