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 email configuration parameters are stored in NVRAM and later retrieved and executed as shell commands without proper sanitization. This vulnerability allows unauthenticated remote attackers to execute arbitrary commands on the device via 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 crafted email settings that include injected commands, such as in the 'SMTPServerPort' field. The 'EmailFrom', 'EmailTo', 'SMTPServerAddress', and 'AccountName' fields must also be populated. Once the router processes this request, the injected command will be executed on the device.

Added: Nov 13, 2025, 6:40 PM
Updated: Nov 13, 2025, 6:40 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.