Buffer Overflow Vulnerability in D-Link DIR-645 Router

Patch this weekFull system takeover over the network, no login needed.
9.8CRITICAL

CVE-2021-43722

Key Information:

Vendor

D-Link

CVE ID
CVE ID:
CVE-2021-43722
Vendor
CVE Published:
31 March 2022

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • Yes: Works over the network, no login needed
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Patch this week

Exploitation is likely. Prioritise the fix.

What to do

1Check the vendor's fix

No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.

2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach Dir-645 Firmware. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Patch this week"
  • It can be exploited remotely without credentials.
  • Its CVSS severity is critical (9.8).

What is CVE-2021-43722?

The D-Link DIR-645 1.03 A1 router is identified as having a buffer overflow vulnerability. This occurs in the hnap_main function within the cgibin handler, where the sprintf function is employed to format the soapaction header onto the stack without imposing any constraints on its size. This lack of size limitation allows for the potential overwriting of memory, which could be exploited by attackers to execute arbitrary code or disrupt router operations. Users are advised to assess their devices and apply appropriate firmware updates to mitigate associated risks.

References

Out-of-Bounds Write Vulnerability in D-Link DIR-895L Router

CVE-2026-100740
D-linkDir-895l👾9.4CRITICAL

Stack-Based Buffer Overflow in D-Link DIR-868L Authentication Component

CVE-2026-94089
D-linkDir-868l👾10CRITICAL

Stack-based Buffer Overflow in D-Link DI-8400 Router

CVE-2025-9938
D-linkDi-8400👾8.7HIGH
View more D-Link vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged
.