Skip to main content
CVE Vulnerability Database

CVE-2024-9564: D-Link DIR-605L Buffer Overflow Vulnerability

CVE-2024-9564 is a critical buffer overflow vulnerability in D-Link DIR-605L firmware that enables remote attackers to exploit the formWlanWizardSetup function. This article covers technical details, affected versions, and mitigation.

Published:

CVE-2024-9564 Overview

CVE-2024-9564 is a buffer overflow vulnerability in D-Link DIR-605L routers running firmware version 2.13B01 BETA. The flaw resides in the formWlanWizardSetup function accessible through the /goform/formWlanWizardSetup endpoint. Attackers manipulate the webpage argument to trigger the overflow condition. The vulnerability is exploitable remotely across the network and public exploit details have been disclosed. The weakness is classified as [CWE-120] Buffer Copy without Checking Size of Input.

Critical Impact

Remote attackers with low privileges can overflow a fixed-length buffer in the router's web interface, leading to memory corruption and potential arbitrary code execution on affected D-Link DIR-605L devices.

Affected Products

  • D-Link DIR-605L router hardware
  • D-Link DIR-605L firmware version 2.13B01 BETA
  • Web administration interface component formWlanWizardSetup

Discovery Timeline

  • 2024-10-07 - CVE-2024-9564 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-9564

Vulnerability Analysis

The vulnerability exists in the formWlanWizardSetup handler within the router's HTTP administration service. This function processes wireless setup wizard submissions sent to the /goform/formWlanWizardSetup endpoint. The webpage parameter supplied in the request is copied into a fixed-size stack or heap buffer without proper length validation. When an attacker sends an oversized webpage value, the copy operation writes past the destination buffer boundary and corrupts adjacent memory.

The D-Link DIR-605L is a consumer wireless router. Exposing management interfaces to untrusted networks amplifies the impact of memory corruption bugs in the embedded HTTP daemon.

Root Cause

The root cause is missing bounds checking on user-controlled input before performing a memory copy operation into a fixed-length buffer. The formWlanWizardSetup function trusts the length of the webpage argument supplied through the web form and does not enforce a maximum size prior to writing into internal storage. This maps directly to [CWE-120], the classic buffer overflow pattern common in embedded MIPS and ARM router firmware built with legacy C string handling.

Attack Vector

An authenticated attacker with low privileges sends a crafted HTTP request to the /goform/formWlanWizardSetup endpoint over the network. The request includes an oversized webpage parameter designed to overwrite return addresses or function pointers adjacent to the target buffer. Successful exploitation results in denial of service through service crash or arbitrary code execution in the context of the router's web daemon. Because the DIR-605L is end-of-life, no vendor patch is available. Refer to the GitHub PoC Documentation for technical reproduction details.

// No verified exploit code is reproduced here. See the referenced
// PoC documentation for the crafted HTTP request structure targeting
// the webpage parameter of /goform/formWlanWizardSetup.

Detection Methods for CVE-2024-9564

Indicators of Compromise

  • HTTP POST or GET requests to /goform/formWlanWizardSetup containing abnormally long webpage parameter values
  • Unexpected reboots, crashes, or restarts of the router web administration service
  • Configuration changes to wireless settings that do not match legitimate administrator activity
  • Outbound connections from the router to unknown hosts following suspicious HTTP traffic

Detection Strategies

  • Inspect network traffic for requests to /goform/formWlanWizardSetup and flag webpage argument lengths exceeding expected sizes
  • Correlate router administrative traffic with source IP addresses outside authorized management networks
  • Monitor for repeated failed authentication attempts against the DIR-605L web interface preceding exploitation attempts

Monitoring Recommendations

  • Forward router syslog and HTTP access logs to a centralized logging platform for retention and analysis
  • Alert on any external network access reaching the router's LAN-side management interface
  • Track firmware version inventory to identify remaining DIR-605L devices running 2.13B01 BETA

How to Mitigate CVE-2024-9564

Immediate Actions Required

  • Disable remote (WAN-side) administration on all DIR-605L devices and restrict web interface access to trusted LAN segments only
  • Change default and weak administrator credentials to reduce the low-privilege access requirement for exploitation
  • Segment DIR-605L devices onto isolated network zones with no direct exposure to untrusted networks
  • Plan replacement of the DIR-605L, which is an end-of-life product no longer receiving security updates

Patch Information

No official vendor patch is listed for CVE-2024-9564 at the time of publication. The D-Link DIR-605L is a legacy consumer router, and affected owners should consult the D-Link Official Website for end-of-life guidance and replacement recommendations. Additional advisory context is available in the VulDB Vulnerability #279372 entry.

Workarounds

  • Block inbound access to TCP port 80 and 443 on the WAN interface of the router
  • Restrict access to /goform/formWlanWizardSetup at an upstream firewall or reverse proxy where feasible
  • Replace the affected device with a supported router model that receives current security updates
bash
# Example iptables rule to block WAN access to the router admin interface
iptables -A INPUT -i wan0 -p tcp --dport 80 -j DROP
iptables -A INPUT -i wan0 -p tcp --dport 443 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.