External risk intelligence

D-Link DIR-505 TFTP Upload Stack Buffer Overflow

CVE advisorySeverity: CRITICAL (CVSS 9.3)

CVE-2026-120189

The vulnerability affects a TFTP service on a D-Link router, which is a network-accessible appliance often used as a gateway or edge device. While TFTP is typically an internal protocol, it is frequently exposed on these types of consumer networking devices, making it a common, externally reachable management or service surface in typical deployments.

Memory Corruption

Halo Surface Signal: 4 out of 5 — likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A critical vulnerability exists in D-Link DIR-505 devices, specifically within the TFTP Upload Filename Handler function. This flaw could allow remote attackers to execute arbitrary code by exploiting a buffer overflow, potentially impacting the device's functionality and security. The exploit is publicly available, increasing the risk of its misuse.

  • Remote code execution risk in router firmware.
  • Network devices are common attack entry points.
  • Confirm relevance and evaluate potential exposure.

Attack Path

How an attacker could exploit the issue

An attacker can remotely trigger a stack-based buffer overflow in the TFTP Upload Filename Handler by sending a specially crafted filename to the vulnerable function. This could allow an attacker to gain control of the device. There is publicly available exploit code for this vulnerability.

  • No authentication or special access required.
  • Vulnerable TFTP upload function.
  • Leads to remote code execution.

Live Threat

Current exploitation, exposure, and threat context

A stack-based buffer overflow vulnerability in the TFTP upload functionality of the D-Link DIR-505 could allow remote attackers to execute arbitrary code when supported. This could impact the integrity and availability of the device's operating system.

  • Device operating system integrity could be affected.
  • Remote attackers could exploit a buffer overflow.
  • Device compromise may lead to network disruption.

Operational Fix

Recommended remediation, mitigation, and detection steps

The D-Link DIR-505 TFTP Upload Filename Handler vulnerability requires a coordinated effort between infrastructure and security teams. Initial triage should focus on identifying all instances of the affected device, assessing their exposure and business criticality, and then confirming ownership to plan remediation.

  • Identify affected devices and owners.
  • Verify external reachability and impact.
  • Plan remediation or vendor engagement.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is the D-Link DIR-505 and why does it have a TFTP handler?

The D-Link DIR-505 is a compact, portable wireless router often used as a travel router, access point, or signal repeater. It includes a TFTP (Trivial File Transfer Protocol) client or server component to facilitate simple file transfers, such as updating firmware or loading configuration files directly to the device's storage without complex authentication.

How does the stack-based buffer overflow work in CVE-2026-120189?

This vulnerability, classified under CWE-121 (Stack-based Buffer Overflow) and CWE-119, occurs when the software writes more data to a memory buffer on the stack than it can hold. In this specific case, the TFTP Upload Filename Handler fails to properly validate the length of a filename provided during an upload, allowing extra data to overwrite adjacent memory, which can lead to unauthorized code execution.

Does sending any TFTP packet trigger this buffer overflow?

No. The vulnerability is specific to the handling of the filename within the TFTP upload function. Simply initiating a standard TFTP connection or performing unrelated tasks will not trigger the bug. It requires a specially crafted, maliciously long filename sent during a file upload operation to corrupt the stack memory.

How do I know if my D-Link DIR-505 is at risk?

According to Halo Surface Signal, this device is often deployed as a gateway or edge device, which frequently exposes its services to the internet. You should determine if your specific unit is configured to allow inbound traffic to its TFTP service from external networks. Devices positioned at the network perimeter are generally at higher risk than those isolated behind robust firewalls.

What should I do if I am running a D-Link DIR-505?

First, conduct an inventory to locate all instances of this router in your environment. Prioritize assessing whether the TFTP service is reachable from untrusted networks. If the service is not required for current operations, disable it immediately. Consult official D-Link documentation or support channels for available firmware updates to mitigate the flaw.

References