D-Link DIR-823X Command Injection Vulnerability

Vulnerability

A command injection vulnerability has been identified in the D-Link DIR-823X router, specifically in versions 240126, 240802, and 250416. The issue arises in the environment variable handler within the file '/usr/sbin/goahead', particularly in the function 'sub_412E7C'. The vulnerability allows remote attackers to execute arbitrary commands on the device by manipulating the 'terminal_addr', 'server_ip', and 'server_port' parameters. Exploitation of this vulnerability is straightforward, and a public proof-of-concept is available.

Impact

Exploitation of this vulnerability allows for remote code execution on the affected device.

Reproduction

To reproduce this vulnerability, log into the router and send a POST request to the '/goform/set_server_settings' endpoint. Include the 'terminal_addr', 'server_ip', and 'server_port' parameters in the request. The 'terminal_addr' and 'server_ip' parameters can be used to inject commands, which will be executed on the router's operating system.

Added: Sep 18, 2025, 2:18 AM
Updated: Sep 18, 2025, 2:18 AM

Vulnerability Rating

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