Tenda AC21 Buffer Overflow Vulnerability in PPTP Server Configuration

Vulnerability

A critical buffer overflow vulnerability has been identified in the Tenda AC21 router, specifically in the firmware version 16.03.08.16. The issue arises in the '/goform/SetPptpServerCfg' endpoint within the 'formSetPPTPServer' function. The vulnerability is caused by improper input validation of the 'startIp' parameter, which is parsed using the 'sscanf' function. This lack of bounds checking allows remote attackers to send oversized 'startIp' values, leading to stack memory overwriting. Such exploitation can cause application crashes, memory corruption, and potentially allow arbitrary code execution on the server.

Impact

Exploitation of this vulnerability can cause application crashes, memory corruption, and allow arbitrary code execution on the affected device. This could lead to unauthorized access and control over the router, with potential monitoring of network traffic or attacks on other devices within the network.

Reproduction

The vulnerability can be reproduced by sending a POST request to the '/goform/SetPptpServerCfg' endpoint with an oversized 'startIp' parameter. This can be done using a Python script that utilizes the 'requests' library to send the exploit. The script should include a 'startIp' value that exceeds the buffer's capacity, effectively triggering the buffer overflow.

Added: Nov 3, 2025, 3:21 AM
Updated: Nov 3, 2025, 3:21 AM

Vulnerability Rating

Custom Algorithm
spread
4.5
impact
7.5
exploitability
9.1
remediation
0.0
relevance
0.9
threat
6.4
urgency
2.9
incentive
10.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.