SECURITYCRITICALCVE-2026-124560

CVE-2026-124560: D-Link DIR-878 HNAP Heap Buffer Overflow (CVSS 9.8)

A critical heap-based buffer overflow in the HNAP handler of D-Link DIR-878 firmware 1.20B05 can be triggered remotely, and exploit details are public.

Dylan H.

Security Team

November 9, 2026
2 min read
CVE-2026-124560: D-Link DIR-878 HNAP Heap Buffer Overflow (CVSS 9.8)

Critical severity

Rated critical. Prioritise patching — see the remediation guidance below.

Affected Products

  • D-Link DIR-878 firmware 1.20B05

Overview

CVE-2026-124560 is a critical vulnerability (CVSS 9.8) in the D-Link DIR-878 router, firmware 1.20B05. The flaw sits in the GetCAPTCHAsetting function of bin/prog.cgi, part of the HNAP handler. Manipulating the uid argument causes a heap-based buffer overflow.

NVD notes the attack can be launched remotely and that an exploit has been made public, which raises the practical risk for any exposed device.

Technical Details

ItemDetail
ComponentHNAP Handler (bin/prog.cgi)
FunctionGetCAPTCHAsetting
Vulnerable argumentuid
WeaknessHeap-based buffer overflow
Attack vectorNetwork (remote)
CVSS9.8 (Critical)

HNAP (Home Network Administration Protocol) is a SOAP-based management interface that consumer routers expose over HTTP. A memory corruption bug in a request handler reachable over the network typically leads to a crash at minimum and, with a reliable exploit, code execution on the device.

Impact

  • Remote denial of service of the router
  • Potential arbitrary code execution on the device
  • Router takeover enables traffic interception, DNS tampering, and use as a botnet node

Consumer and small-office routers from this class have repeatedly been recruited into botnets after public exploits appeared.

  1. Check D-Link's support site for a firmware update for the DIR-878 and apply it when available.
  2. Make sure remote (WAN-side) administration is disabled.
  3. Restrict access to the management interface to trusted LAN hosts.
  4. If the model is end-of-life with no patch, plan to replace it.
  5. Monitor for unexpected router reboots, configuration changes, or unusual outbound traffic.

References