D-Link DIR-820LW OS Command Injection Vulnerability

Vulnerability

A critical OS command injection vulnerability has been identified in the D-Link DIR-820LW router running version 2.03. The issue arises in the 'ssdpcgi_main' function, which processes SSDP (Simple Service Discovery Protocol) M-SEARCH requests. The vulnerability allows remote, unauthenticated attackers to execute arbitrary system commands with root privileges by sending specially crafted SSDP packets. This exploitation takes advantage of the function's failure to properly sanitize or escape input from the HTTP_ST (Search Target) environment variable before incorporating it into a shell command.

Impact

Exploitation of this vulnerability allows for unauthorized remote command execution with root privileges on the affected device.

Reproduction

To reproduce this vulnerability, send an SSDP M-SEARCH request that includes a crafted HTTP_ST value. The 'ssdpcgi_main' function will process the request and execute the injected command with root privileges.

Added: Mar 20, 2026, 8:24 PM
Updated: Mar 20, 2026, 8:24 PM

Vulnerability Rating

Custom Algorithm
spread
4.5
impact
7.5
exploitability
9.1
remediation
0.0
relevance
4.2
threat
6.4
urgency
2.9
incentive
8.3

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.