CVE-2026-0625: Critical D-Link Router Flaw


(The image is AI-generated)



In early January 2026, researchers disclosed CVE-2026-0625, a critical flaw in the web management interface of several end-of-life D-Link DSL routers. An attacker who can reach the vulnerable dnscfg.cgi endpoint can run commands on the device without logging in. Attacks were already underway: the Shadowserver Foundation recorded an exploitation attempt on November 27, 2025.

D-Link says it will not release a fix. The vendor’s advice is to retire the affected routers and replace them. This article covers what is documented, what some write-ups overstate, and what to do if one of these routers is still in your network.

Quick summary

  • What: OS command injection in the dnscfg.cgi endpoint, which handles DNS server settings. It is reachable without authentication, according to VulnCheck.
  • Severity: CVSS 9.3. This is a CVSS 4.0 score from the CVE record’s publisher, VulnCheck. Tenable lists a v3 score of 9.8 in its own entry.
  • Affected (confirmed by D-Link and VulnCheck): DSL-526B up to 2.01, DSL-2640B up to 1.07, DSL-2740R before 1.17, DSL-2780B up to 1.01.14.
  • Patch: none. The models have been end-of-life since 2020.
  • Exploited: yes. First observed November 27, 2025; reported to D-Link in mid-December; disclosed January 5, 2026.
  • Who is exposed: mainly devices with remote administration reachable from the internet, or devices attacked from the local network. VulnCheck notes that most consumer setups expose the management pages only to the LAN.

The vulnerability

What the endpoint does

dnscfg.cgi is part of the router’s web interface, where DNS server settings are configured. According to VulnCheck, the endpoint does not properly sanitize the DNS configuration values it receives, so an attacker can slip shell commands into those fields. VulnCheck’s advisory says an unauthenticated remote attacker can execute arbitrary shell commands, resulting in remote code execution.

Two weakness types appear in the records: command injection (CWE-78) and missing authentication (CWE-306). I am not reproducing the request format on purpose.

Root privileges

Some analyst write-ups say commands run as root. That is a reasonable expectation for embedded router firmware, but I did not find it stated in the vendor advisory. I treat it as likely, not confirmed.

A repeat of an old problem

D-Link’s own security notice documents unauthenticated DNS-changing behavior (“DNSChanger”) in the same four models. It references an attack campaign reported in 2016, another reported in April 2019, and the “GhostDNS” malware ecosystem. The CVE record says the same endpoint was linked to exploitation campaigns from 2016 through 2019. The new flaw exposes the same mechanism, which is why VulnCheck and others describe it as familiar territory for attackers.

Affected products

Model Affected firmware Status
DSL-526B 2.01 and earlier End of life since 2020; no fix
DSL-2640B 1.07 and earlier End of life since 2020; no fix
DSL-2740R Earlier than 1.17 End of life since 2020; no fix
DSL-2780B 1.01.14 and earlier End of life since 2020; no fix

These are the models D-Link confirmed together with VulnCheck. D-Link also said it was still validating firmware builds across legacy and supported products, because the CGI library varies between models. So a model number alone may not tell you whether a device is affected. Later reporting says the vendor’s list grew; see the update below.

Timeline

Date Event
Nov 27, 2025 Shadowserver records a command injection attempt on one of its honeypots.
Dec 15–16, 2025 VulnCheck reports the issue to D-Link. Sources give December 15 or 16.
Jan 5, 2026 CVE-2026-0625 is published.
Jan 6–7, 2026 BleepingComputer, The Hacker News and others report active exploitation. D-Link confirms there will be no patch.

From first observed attempt to public disclosure is about five to six weeks. Some summaries say exploitation began “months” before disclosure. The sources I found do not support that.

What an attacker could do

The following is what the flaw makes possible, according to security vendors and analysts. I did not find a report that gives the number of compromised devices or describes a specific malware family used in this campaign.

  • Change the router’s DNS servers. Redirecting every device on the network to attacker-controlled DNS enables phishing pages that look like real sites. This is the behavior seen in the 2016–2019 campaigns.
  • Run arbitrary commands. That could include installing a backdoor or enlisting the router in a botnet. Analysts describe these as possible outcomes.
  • Use the router as a foothold. A device sitting between the internet and your network is a natural place to pivot from.
  • See unencrypted traffic. Plain HTTP, FTP and similar traffic passing through a compromised router can be read or altered. Encrypted traffic is better protected, though DNS redirection can still send victims to lookalike sites.

How to reduce risk

The only complete fix is replacement. Until then, these steps limit exposure. The first four are general router hygiene, not vendor-confirmed mitigations for this CVE.

Within a day or two

  1. Find affected devices. Check the model and firmware version on the label and in the admin page. Remember that unlisted models may use the same code.
  2. Turn off remote (WAN-side) administration. The web interface should answer on the LAN only.
  3. Check the router’s DNS settings. Compare them with your ISP’s or a public resolver you chose. An unfamiliar address is a strong warning sign.
  4. Isolate the router if you cannot replace it yet. Keep it away from sensitive systems and limit what can reach its management interface.

Within a few weeks

  1. Replace the device with a model that still receives security updates. D-Link and VulnCheck both recommend this.
  2. Block inbound access to the router’s management pages at an upstream firewall if the router sits behind other network gear.
  3. Consider setting trusted DNS directly on your devices. D-Link’s older notice suggests manually setting DNS to well-known resolvers. This does not stop a compromised router from tampering with traffic, so it is a partial measure.

Detection

  • Look in router and gateway logs for requests to /dnscfg.cgi, especially from external addresses or with unusual characters in parameters.
  • Watch for sudden changes to DNS resolvers, certificate warnings on well-known sites, and unexpected redirects.
  • NetSecOps maps the technique to MITRE ATT&CK T1059.004 (Unix shell command execution).

Claims checked

Claim Status Note
CVSS 9.3, unauthenticated command injection in dnscfg.cgi Confirmed VulnCheck advisory; the 9.3 score is a CVSS 4.0 vector.
“Perfect 10.0 under CVSS v2.0” Not found No source lists a v2 score. Removed.
Exploited “widely” for “months” before disclosure Overstated First attempt recorded Nov 27, 2025; disclosure Jan 5, 2026. No published count of compromised devices.
Flaw persisted “for over a decade” Loosely supported The DNS-change behavior was documented from 2016. The age of this specific bug is not stated.
Four models and versions listed Confirmed D-Link with VulnCheck, via BleepingComputer and The Hacker News.
Example payload with a command to delete files Not found Invented illustration. Removed.
Commands run as root Unconfirmed Analyst assumption (HivePro); not in vendor advisory.
Any internet-facing or LAN attacker can reach it Qualified VulnCheck says most consumer setups allow only LAN access to such pages, so exploitation implies a browser-based attack or remote administration.
GhostDNS and DNSChanger compromised “hundreds of thousands of routers” Not verified D-Link’s notice cites a 2016 campaign against 166 router models. I found no router count in the sources. Removed.
Block TCP ports 80, 443 and 8080 Not sourced Reasonable hardening, but not from the vendor. Kept as a general measure without port numbers.
D-Link recommends retiring and replacing affected devices Confirmed Dark Reading; BleepingComputer.

Update (October 19, 2026)

  • The CVE record changed. According to the CIRCL database, the record was updated in May 2026. Its title now describes an authentication bypass in D-Link “DSL/DIR/DNS” devices, and a CPE listing in an aggregator includes the DIR-600 firmware. I could not confirm from D-Link’s page which models were added.
  • More models reported. CyberInsider says D-Link’s later advisory lists at least 18 router and NAS models, including DSL-2640T, DSL-500, DSL-500G and DSL-502G. I could not retrieve D-Link’s advisory page to check this, so treat the list as unverified and check D-Link’s notice for your model.
  • CISA KEV. I could not confirm that CISA has added CVE-2026-0625 to its Known Exploited Vulnerabilities catalog. A CIRCL feed entry from June 2026 flags it as exploited but “not yet in CISA KEV.”

My take

I have not tested these routers. This is my read of the public reports.

  • “Unpatchable” is the real story, not the headline score. The fix was never going to arrive, and the vendor said so. For households and small offices, the practical risk is whether anyone still runs these devices and has remote administration switched on.
  • Be wary of “widespread.” Several write-ups call the exploitation widespread. The primary reporting I found describes active exploitation, honeypot observations and old campaigns, but no figure for compromised devices.
  • Replacement is the clean answer, and it’s also the hard one. Many of these routers were issued by ISPs. People may not know the device is end-of-life, or who to ask. The ISP angle deserves more attention than it gets.

What this means for you

  1. Check your router’s label. If it is one of the four models, plan to replace it. If it is another old D-Link DSL model, check D-Link’s current advisory.
  2. Ask your ISP if the router was supplied by them. They may offer a replacement or a supported model.
  3. Turn off remote administration now, whatever else you decide.
  4. Check DNS settings on the router and on a device or two. Unknown servers mean you should act as if the router is compromised.
  5. Change the admin password and sign out of old sessions after replacing the device, and avoid carrying old configuration backups across.
  6. Be careful with logins and payments on a network you suspect is compromised. Use a different connection until the router is replaced.

Frequently asked questions

Will D-Link release a patch?

No. D-Link says the affected models reached end-of-life in early 2020 and will not receive firmware updates for this flaw. The vendor’s recommendation is to replace them.

Is my router vulnerable if it is not on the list?

Possibly. D-Link said the CGI library varies across products, so a model number alone does not settle it. Check D-Link’s current advisory for your model, and treat any old, unsupported DSL router with caution.

Can someone exploit this from the internet?

Only if the router’s management interface is reachable from the internet, or the attacker finds another way to send requests to it, such as through a browser on your network. VulnCheck notes that most consumer setups limit the page to the LAN.

Sources

Tags

Post a Comment

0Comments

Post a Comment (0)