D-Link DNS products vulnerable to command injection via /cgi-bin/hd_config.cgi

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

CVE-2024-8212

Key Information:

Vendor

D-link

CVE ID
CVE ID:
CVE-2024-8212
Vendor
CVE Published:
27 August 2024

Timeline

Exploit known the day it was published

  • ๐Ÿ‘พ

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Badges

๐Ÿ‘พ Exploit Exists

How risky is it?

  • Yes: Works over the network, no login needed
  • Partly: Exploitation or a working exploit reported
  • 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 Dns-120. 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.

3Look for signs of compromise

Exploitation has been reported, so check logs on exposed Dns-120 systems for unusual requests or new processes from before you patched.

4Why it's rated "Patch this week"
  • Exploitation or a working exploit has been reported.
  • It can be exploited remotely without credentials.
  • Its CVSS severity is critical (9.8).

What is CVE-2024-8212?

A vulnerability has been identified in several D-Link DNS series Network Attached Storage products, specifically affecting the function cgi_FMT_R12R5_2nd_DiskMGR located in the /cgi-bin/hd_config.cgi file. The vulnerability arises from improper handling of the f_source_dev parameter, leading to potential command injection attacks. This issue can be exploited remotely, allowing attackers to execute unauthorized commands on affected devices. Notably, all products impacted by this vulnerability are no longer supported by the vendor, emphasizing the need for users to retire and replace these devices to mitigate risk.

Affected Version(s)

DNR-202L 20240814

DNR-322L 20240814

DNR-326 20240814

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

EPSS Score

9% chance of being exploited in the next 30 days.

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

Credit

BuaaIoTTeam (VulDB User)
.