CVE-2026-1125

7.3 HIGH

📋 TL;DR

This CVE describes a remote command injection vulnerability in D-Link DIR-823X routers. Attackers can execute arbitrary commands by manipulating the wd_enable parameter in the set_wifidog_settings function. All users of affected D-Link DIR-823X routers with firmware version 250416 are vulnerable.

💻 Affected Systems

Products:
  • D-Link DIR-823X
Versions: Firmware version 250416
Operating Systems: Embedded Linux (router firmware)
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerability exists in the web management interface's set_wifidog_settings function. No special configuration is required for exploitation.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete device compromise allowing attackers to install malware, pivot to internal networks, create persistent backdoors, or use the device in botnets.

🟠

Likely Case

Attackers gain shell access to execute commands, potentially installing cryptocurrency miners, conducting DDoS attacks, or stealing network credentials.

🟢

If Mitigated

Limited impact if device is behind strict firewall rules, but still vulnerable to internal attackers or if perimeter defenses are breached.

🌐 Internet-Facing: HIGH - The vulnerability is remotely exploitable and public exploit code exists, making internet-facing devices prime targets.
🏢 Internal Only: HIGH - Even internally, the vulnerability can be exploited by malicious insiders or attackers who have breached the network perimeter.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Public exploit code is available on GitHub, making this easily weaponizable. The attack requires no authentication and has low technical complexity.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: Not available at time of analysis

Restart Required: Yes

Instructions:

1. Check D-Link's security advisories page for updates. 2. If a patch is released, download the firmware update. 3. Log into router admin interface. 4. Navigate to firmware update section. 5. Upload and apply the new firmware. 6. Reboot the router.

🔧 Temporary Workarounds

Disable Remote Management

all

Prevent external access to the vulnerable web interface

Log into router admin → Advanced → Remote Management → Disable

Block Access to Vulnerable Endpoint

linux

Use firewall rules to block access to the vulnerable /goform/set_wifidog_settings endpoint

iptables -A INPUT -p tcp --dport 80 -m string --string "set_wifidog_settings" --algo bm -j DROP
iptables -A INPUT -p tcp --dport 443 -m string --string "set_wifidog_settings" --algo bm -j DROP

🧯 If You Can't Patch

  • Replace affected routers with different models that are not vulnerable
  • Segment affected routers on isolated network segments with strict firewall rules

🔍 How to Verify

Check if Vulnerable:

Check router firmware version in admin interface. If version is 250416, the device is vulnerable.

Check Version:

curl -s http://router-ip/ | grep -i firmware || Check web interface at http://router-ip/

Verify Fix Applied:

After applying any firmware update, verify the version has changed from 250416 and test that the /goform/set_wifidog_settings endpoint no longer accepts malicious wd_enable parameters.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to /goform/set_wifidog_settings
  • Commands like 'wget', 'curl', or 'sh' in URL parameters
  • Multiple failed login attempts followed by exploitation attempts

Network Indicators:

  • Unusual outbound connections from router to suspicious IPs
  • Traffic patterns suggesting device is part of botnet
  • Unexpected SSH or telnet connections originating from router

SIEM Query:

source="router-logs" AND (url="/goform/set_wifidog_settings" OR (url CONTAINS "set_wifidog_settings" AND (param CONTAINS "wget" OR param CONTAINS "curl" OR param CONTAINS "sh")))

🔗 References

📤 Share & Export