Summary
CVE-2026-124560 is a critical heap-based buffer overflow (CWE-122 / CWE-119) in the HNAP handler of the D-Link DIR-878 router, firmware version 1.20B05. It can be triggered remotely, and a public exploit has been disclosed. The CVE record lists a CVSS v4.0 score of 9.3 (Critical) and a CVSS v3.1 score of 9.8 (Critical).
Technical details
- Root cause: Heap-based buffer overflow in the
GetCAPTCHAsettingfunction inbin/prog.cgi, part of the HNAP Handler component. - Trigger condition: Manipulating the
uidargument triggers the overflow. - Attack vector: Network. The CVSS vectors indicate low complexity, no privileges required and no user interaction.
- Impact: The CVSS vectors rate confidentiality, integrity and availability impact as High. The CVE record states the flaw allows remote exploitation.
- Exploit status: A public exploit has been disclosed (VulDB, GitHub write-up). The CVE record notes that the product is no longer actively supported.
Affected software
- D-Link DIR-878 firmware 1.20B05
Severity
- CVSS v3.1: 9.8 (Critical).
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P/RL:X/RC:R - CVSS v4.0: 9.3 (Critical).
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
Mitigation and recommended actions
- Immediate: No vendor patch is referenced in the CVE record, and the product is described as no longer actively supported. Check D-Link’s support pages for any available firmware.
- If no patch:
- Replace the end-of-life device with a supported model.
- Do not expose the router’s web or HNAP management interface to the internet.
- Restrict access to the management interface to trusted internal networks only.
- Identify any DIR-878 devices on your attack surface and review them for the affected firmware.

