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

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 'portForward' function, where the 'ip_address' parameter is inadequately validated. This flaw allows for remote exploitation, as the manipulated 'ip_address' is eventually executed as a command via the router's system interface.

Impact

Exploitation of this vulnerability allows for stored command injection, where the injected command is executed when the router's firewall rules are applied.

Reproduction

To reproduce this vulnerability, send a request to the 'goform/portForward' endpoint with a crafted 'ip_address' parameter that includes command metacharacters. The 'portForward' handler will accept the manipulated IP address without proper sanitization, injecting it into the 'PortForwardRules' variable. Once the rule is saved, the router will execute the injected command when the firewall rules are applied.

Added: May 12, 2026, 12:21 AM
Updated: May 12, 2026, 12:21 AM

Vulnerability Rating

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