D-Link DIR-816 Command Injection Vulnerability in Port Forwarding Feature

Vulnerability

A command injection vulnerability has been identified in the D-Link DIR-816 router, specifically in firmware version 1.10CNB05_R1B011D88210. The issue arises in the 'singlePortForward' form handler, where the 'ip_address' parameter is inadequately validated. The vulnerability allows for remote exploitation, as the flawed validation process only checks if the IP address is parseable, without sanitizing it for safe use in shell commands. Once a malicious 'ip_address' is accepted, it is stored in the router's NVRAM and later executed as part of an iptables command, creating a persistent command injection flaw that can be exploited at any time.

Impact

Exploitation of this vulnerability allows for arbitrary command execution on the router, with the executed commands running under the privileges of the web/firewall process.

Reproduction

To reproduce this vulnerability, send a POST request to the '/goform/singlePortForward' endpoint with a crafted 'ip_address' parameter that includes malicious commands. The router will accept the input without proper sanitization, allowing the injected commands to be executed later when the port forwarding rules are applied.

Added: May 11, 2026, 11:25 PM
Updated: May 11, 2026, 11:25 PM

Vulnerability Rating

Custom Algorithm
spread
5.7
impact
7.5
exploitability
9.1
remediation
0.0
relevance
8.0
threat
6.4
urgency
2.9
incentive
8.3

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