D-Link DIR-823X Command Injection Vulnerability in UPnP Settings

Vulnerability

A command injection vulnerability has been identified in the D-Link DIR-823X router, specifically in the 250416 firmware version. The issue arises in the '/goform/set_upnp' endpoint, within the 'sub_420618' function. This vulnerability allows authenticated attackers to inject arbitrary operating system commands by manipulating the 'upnp_enable' parameter. The injection is possible because the application fails to properly sanitize newline characters, enabling attackers to terminate the intended command and execute malicious instructions with root privileges.

Impact

Exploitation of this vulnerability allows for unauthorized command execution on the affected device, with the injected commands being executed as the root user.

Reproduction

To reproduce this vulnerability, an authenticated user must send a POST request to the '/goform/set_upnp' endpoint with a payload that includes a newline character. The injected command can be any valid shell command, which will be executed with root privileges on the router.

Added: Feb 8, 2026, 7:22 PM
Updated: Feb 8, 2026, 7:22 PM

Vulnerability Rating

Custom Algorithm
spread
4.5
impact
7.5
exploitability
6.2
remediation
0.0
relevance
2.8
threat
6.4
urgency
2.9
incentive
0.0

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