Overview
The vulnerability resides in the File Existence Check component of DrayTek Vigor2960 routers running firmware 1.5.1.6. An attacker can send a crafted request to the CGI endpoint, causing a heap overflow. The issue is rated critical with a CVSS score of 9.9, and an exploit is publicly available. DrayTek recommends upgrading to firmware 1.5.1.7 or later, which addresses the flaw.
Technical details
The check_file_exist function processes the upload_name argument without proper length validation. By supplying an overly long value, an attacker can overflow the heap memory allocated for the request, corrupting adjacent data structures. The overflow can be triggered over the network through the router's web management interface, requiring only the ability to send HTTP requests to the vulnerable CGI script.
Impact
Successful exploitation grants the attacker arbitrary code execution on the router, potentially allowing full control of the device, network traffic interception, and propagation to other internal systems. All deployments of DrayTek Vigor2960 running firmware 1.5.1.6 are at risk.
Recommended actions
- Patch the device to firmware version 1.5.1.7 or later.
- Restrict remote access to the router's web management interface to trusted IP ranges.
- Monitor web server logs for unusual CGI requests or repeated 500 error responses.
- Disable unused CGI endpoints or file upload features if they are not required.
- Segment the device on a separate VLAN to limit lateral movement.
Detection
Review the router's access and error logs for requests to /cgi-bin/mainfunction.cgi, especially those containing the upload_name parameter. Look for repeated 500 Internal Server Error responses or unusually large parameter values. Correlate spikes with external IP addresses and consider enabling detailed request logging to capture suspicious activity.
Reference: NVD entry for CVE-2026-129453