Tenda CH22 Stack-Based Buffer Overflow Vulnerability in Parameter Handler

Vulnerability

A stack-based buffer overflow vulnerability has been identified in the Tenda CH22 router, specifically in version 1.0.0.1. The issue arises in the 'fromAdvSetWan' function within the '/goform/AdvSetWan' file, part of the Parameter Handler component. The vulnerability is triggered by manipulating the 'wanmode' and 'PPPOEPassword' parameters. When 'wanmode' is set to 2, the function processes the input without proper length validation, leading to a buffer overflow on the stack. This vulnerability can be exploited remotely, and a public exploit is available.

Impact

Exploitation of this vulnerability causes a stack-based buffer overflow, which can lead to arbitrary code execution or a denial-of-service condition.

Reproduction

The vulnerability can be reproduced by sending a POST request to the '/goform/AdvSetWan' endpoint. The request must include 'wanmode' set to 2 and a crafted 'PPPOEPassword' value that exceeds the buffer length, causing a stack-based overflow.

Added: Mar 30, 2026, 11:19 PM
Updated: Mar 30, 2026, 11:19 PM

Vulnerability Rating

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