D-Link DIR-878A1 Router Unauthenticated Command Injection Vulnerability

Vulnerability

A command injection vulnerability allowing unauthenticated remote exploitation has been identified in the D-Link DIR-878A1 router, specifically in the firmware version FW101B04.bin. The issue arises in the 'SetNetworkSettings' function of 'prog.cgi', where user-supplied 'IPAddress' and 'SubnetMask' parameters are directly appended to shell commands executed via the system() function. This vulnerability enables attackers to execute arbitrary commands on the device.

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 a payload that includes the 'IPAddress' and 'SubnetMask' parameters. The 'IPAddress' parameter can be crafted to include malicious commands, which will be executed on the router. Alternatively, the 'SubnetMask' parameter can be used to achieve the same effect. Both parameters can be injected simultaneously.

Added: Nov 13, 2025, 7:19 PM
Updated: Nov 13, 2025, 7:19 PM

Vulnerability Rating

Custom Algorithm
spread
5.7
impact
7.5
exploitability
9.1
remediation
0.0
relevance
1.1
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.