D-Link DIR-882 Router Command Injection Vulnerability

Vulnerability

A command injection vulnerability has been identified in the D-Link DIR-882 Router firmware DIR882A1_FW102B02. The issue arises in the 'prog.cgi' and 'rc' binaries, where user-supplied Dynamic DNS (DDNS) parameters are improperly handled. The 'sub_4438A4' function in 'prog.cgi' stores DDNS server address and hostname values in NVRAM without adequate sanitization. These values are later retrieved by the 'start_DDNS_ipv4' function in 'rc', concatenated into DDNS shell commands, and executed via 'twsystem()', creating an opportunity for unauthenticated remote attackers to execute arbitrary commands on the device through crafted HTTP requests to the router's web interface.

Impact

Exploitation of this vulnerability allows for arbitrary command execution on the affected router.

Reproduction

To reproduce this vulnerability, send a POST request to '/cgi-bin/prog.cgi' with the 'SetDynamicDNSSettings/ServerAddress' and 'SetDynamicDNSSettings/Hostname' fields. Include the desired DDNS server address and hostname, appending the injected command as a payload. The router will execute the injected command due to the improper handling of the DDNS parameters.

Added: Nov 13, 2025, 6:43 PM
Updated: Nov 13, 2025, 8:29 PM

Vulnerability Rating

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

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