Tenda CH22 Command Injection Vulnerability in FormWriteFacMac Function

Vulnerability

A command injection vulnerability has been identified in the Tenda CH22 router, specifically in version 1.0.0.1. The issue arises in the FormWriteFacMac function within the file /goform/WriteFacMac. The vulnerability allows remote attackers to execute arbitrary operating system commands by manipulating the 'mac' argument in a crafted request. This exploitation is made possible because the 'mac' value is directly inserted into a command and executed via the doSystemCmd function.

Impact

Exploitation of this vulnerability allows for arbitrary command execution on the affected device.

Reproduction

To reproduce this vulnerability, send a POST request to the /goform/WriteFacMac endpoint. Include a 'mac' parameter with a value that contains the desired command, such as ';echo hahahahahaha;'. The router will execute the injected command.

Added: Mar 30, 2026, 10:20 PM
Updated: Mar 30, 2026, 10:20 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
6.0
remediation
0.0
relevance
4.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.