Tenda AC21 Command Injection Vulnerability in DMZ Configuration Endpoint

Vulnerability

A stored command injection vulnerability has been identified in the Tenda AC21 router, specifically in version 1.1.1.1/1.dmzip/16.03.08.16. The issue arises in the 'mDMZSetCfg' function within the '/goform/mDMZSetCfg' endpoint. This vulnerability allows remote attackers to inject commands into the 'dmzIp' parameter, exploiting insufficient input validation. The injected commands are executed with root privileges, potentially leading to unauthorized access and control over the device.

Impact

Exploitation of this vulnerability allows for remote code execution with root privileges on the affected router. The injected command is stored in the router's NVRAM, creating a persistent threat that could be re-executed after a device reboot or service restart. Additionally, the vulnerability could be exploited to modify firewall rules, intercept network traffic, or pivot to other devices within the internal network.

Reproduction

The vulnerability can be reproduced by sending a POST request to the '/goform/mDMZSetCfg' endpoint with a crafted 'dmzIp' parameter. The payload should include a valid IP address followed by a newline character and the desired command, such as 'reboot'. Authentication cookies are also required to execute the exploit.

Added: Jan 30, 2026, 12:18 AM
Updated: Jan 30, 2026, 12:18 AM

Vulnerability Rating

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