Tenda HG9 Stack-Based Buffer Overflow Vulnerability in Wireless Configuration Endpoint

Vulnerability

A stack-based buffer overflow vulnerability has been identified in the Tenda HG9 router, specifically in the wireless configuration endpoint '/boaform/formWlanSetup' on firmware version 300001138. The vulnerability arises because the 'formWlanSetup' function does not properly validate the length of the 'ssid' parameter before copying it into fixed-size stack buffers using the unsafe 'strcpy' function. This lack of input validation allows an attacker to send a crafted request with an 'ssid' longer than 33 bytes, overwriting the stack frame and potentially leading to arbitrary code execution or a denial-of-service condition by crashing the device's web service.

Impact

Exploitation of this vulnerability allows for remote code execution, where an attacker can gain full control of the router by hijacking the program counter to execute malicious payloads. Alternatively, the vulnerability can be exploited to cause a denial-of-service condition, crashing the 'httpd' or 'boa' service and disrupting access to the router's management interface.

Reproduction

The vulnerability can be reproduced by sending a POST request to the '/boaform/formWlanSetup' endpoint with a crafted 'ssid' parameter that exceeds 33 bytes in length. This can be done using a Python script that automates the process, as demonstrated in the published proof-of-concept exploit.

Remediation

Users are advised to update to a version of the firmware that addresses this vulnerability. If no such update is available, consider replacing the router with a more secure model.

Added: Feb 22, 2026, 2:21 AM
Updated: Feb 22, 2026, 2:21 AM

Vulnerability Rating

Custom Algorithm
spread
0.3
impact
7.5
exploitability
8.5
remediation
0.0
relevance
3.2
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.