TRENDnet TEW-657BRM sprintf out-of-bounds write (CVE-2026-129351)
Overview
The TRENDnet TEW-657BRM router version 1.00.1 includes a vulnerable mini_httpd component where the sprintf call in /setup.cgi does not properly validate input. Crafted network traffic can cause an out-of-bounds memory write, leading to remote code execution. The product has been end-of-life for over 15 years and does not receive updates from the vendor.
Technical Details
The flaw resides in the sprintf function within /setup.cgi of the mini_httpd web interface. When processing HTTP requests, the function writes data without bounds checking, allowing an attacker to supply oversized input that overwrites adjacent memory. Exploitation requires only network access to the device's web management interface and does not need authentication.
Impact
Successful exploitation grants an attacker remote code execution on the router, enabling full control, network pivoting, or deployment of persistent malware. All installations of TRENDnet TEW-657BRM running version 1.00.1 are exposed, particularly those still reachable from untrusted networks.
Recommended Actions
- Patch the device if an official fix becomes available.
- Restrict network access to the router to trusted management networks only.
- Disable remote web management if it is not required for operations.
- Monitor inbound traffic to /setup.cgi for unusually long or malformed request parameters.
Detection
Review web server logs for requests targeting /setup.cgi that contain excessive parameter lengths or unusual character patterns. Correlate spikes in such traffic with authentication failures or unexpected process restarts. Enable alerting on repeated attempts to access the vulnerable endpoint.