Tenda M3 Stack-Based Buffer Overflow Vulnerability in exeCommand Handler

Vulnerability

A stack-based buffer overflow vulnerability has been identified in the Tenda M3 router, specifically in the firmware version 1.0.0.13(4903). The issue arises in the form handler 'exeCommand' within the '/goform/' directory, where the 'cmdinput' parameter is subjected to a stack-based overflow. This vulnerability is attributed to a complete lack of input validation and proper bounds checking, allowing remote attackers to manipulate the command input, overwrite stack data, hijack control flow, and potentially cause a denial-of-service condition.

Impact

Exploitation of this vulnerability leads to a stack-based buffer overflow, causing memory corruption that can be exploited to hijack control flow. Such buffer overflow conditions are typically exploited to execute arbitrary code or cause a denial-of-service by crashing the device.

Reproduction

To reproduce this vulnerability, send a POST request to the '/goform/exeCommand' endpoint with the 'cmdinput' parameter. The input should be crafted to include a payload that exceeds the buffer limit, such as a string of repeated characters. This can be done using a simple script or command that generates the required input length.

Added: Dec 30, 2025, 6:44 PM
Updated: Dec 30, 2025, 6:44 PM

Vulnerability Rating

Custom Algorithm
spread
1.4
impact
5.0
exploitability
9.1
remediation
7.7
relevance
1.7
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.