Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-4445 Overview
CVE-2025-4445 is a command injection vulnerability in the D-Link DIR-605L router running firmware version 2.13B01. The flaw resides in the wake_on_lan function, where the mac argument is passed to a system command without sufficient sanitization [CWE-77]. Attackers can exploit the issue remotely over the network with low-privileged authenticated access. The DIR-605L is an end-of-life product that no longer receives security updates from the vendor.
Critical Impact
Authenticated remote attackers can inject arbitrary operating system commands through the mac parameter of the wake_on_lan handler, leading to execution on the router with web-service privileges.
Affected Products
- D-Link DIR-605L hardware (end-of-life)
- D-Link DIR-605L firmware version 2.13B01
- Deployments exposing the router web management interface to untrusted networks
Discovery Timeline
- 2025-05-09 - CVE-2025-4445 published to NVD
- 2025-05-13 - Last updated in NVD database
Technical Details for CVE-2025-4445
Vulnerability Analysis
The vulnerability is a command injection flaw classified under [CWE-77] (Improper Neutralization of Special Elements used in a Command) and [CWE-74] (Improper Neutralization of Special Elements in Output). The affected code path is the wake_on_lan function exposed through the router's HTTP management interface.
The wake_on_lan handler accepts a mac parameter intended to hold a MAC address for a Wake-on-LAN magic packet. The handler passes this input into a shell command without validating that the value matches a MAC address format or escaping shell metacharacters. An authenticated attacker can submit a crafted mac value containing shell separators such as ;, |, or backticks to append arbitrary commands.
The attack is remotely reachable when the management interface is accessible from the LAN or, in misconfigured deployments, from the WAN. Because the DIR-605L is no longer supported, no official firmware patch will be issued.
Root Cause
The root cause is missing input validation and unsafe construction of an operating system command string. The mac parameter is concatenated directly into a shell invocation, allowing user-controlled bytes to break out of the intended argument context.
Attack Vector
Exploitation requires network reachability to the router's web interface and a valid session. The attacker submits an HTTP request to the wake_on_lan endpoint with a mac value that contains shell metacharacters. Successful injection executes commands in the context of the router's web service, which typically runs with elevated privileges on embedded Linux. See the public proof of concept for request structure details.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2025-4445
Indicators of Compromise
- HTTP requests to the router management interface containing wake_on_lan with a mac parameter holding non-hexadecimal characters such as ;, &, |, $(, or backticks
- Outbound connections from the router to unexpected hosts, indicating downloader or reverse shell activity
- Unexpected processes or modifications to persistence locations on the router filesystem
Detection Strategies
- Inspect web server logs on the router and upstream proxies for malformed mac values submitted to wake_on_lan endpoints
- Apply network signatures that flag shell metacharacters in HTTP POST bodies targeting D-Link administrative URIs
- Monitor for DNS queries and outbound traffic patterns originating from the router that deviate from baseline behavior
Monitoring Recommendations
- Forward router syslog and HTTP access logs to a central logging platform for correlation
- Alert on any authentication to the DIR-605L admin interface from external addresses
- Track firmware version and configuration drift on legacy network devices through periodic audits
How to Mitigate CVE-2025-4445
Immediate Actions Required
- Replace the D-Link DIR-605L with a vendor-supported router, since the device is end-of-life and will not receive a patch
- Disable remote administration on the WAN interface and restrict LAN-side admin access to trusted hosts
- Rotate the administrative password and review the device configuration for unauthorized changes
- Place the device behind a segmentation boundary that blocks untrusted access to the management interface
Patch Information
No patch is available. D-Link confirmed that the DIR-605L is no longer supported, and CVE-2025-4445 will remain unfixed. The recommended remediation is hardware replacement with a currently supported model. Reference the D-Link official website for supported product lines.
Workarounds
- Block inbound access to the router HTTP and HTTPS admin ports from the WAN using upstream firewall rules
- Restrict the Wake-on-LAN feature use by limiting which client subnets can reach the admin interface
- Place the router on an isolated VLAN and treat it as untrusted infrastructure until replacement
# Example upstream firewall rule blocking WAN-side admin access
iptables -I FORWARD -p tcp -d <router_ip> --dport 80 -j DROP
iptables -I FORWARD -p tcp -d <router_ip> --dport 443 -j DROP
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

