CVE-2024-3008 Overview
CVE-2024-3008 is a stack-based buffer overflow in the Tenda FH1205 router running firmware version 2.0.0.7(775). The flaw resides in the formexeCommand function handling requests to /goform/execCommand. An attacker who supplies a crafted cmdinput argument can overflow the fixed-size stack buffer and corrupt adjacent memory. The vulnerability is remotely reachable across the network and requires only low-level authentication to trigger. A public exploit description is available on GitHub, increasing the risk of opportunistic attacks against exposed devices.
Critical Impact
Remote attackers with low privileges can trigger a stack-based buffer overflow in the router's web management interface, potentially leading to arbitrary code execution or denial of service on affected devices.
Affected Products
- Tenda FH1205 router (hardware)
- Tenda FH1205 firmware version 2.0.0.7(775)
- Web management interface endpoint /goform/execCommand
Discovery Timeline
- 2024-03-27 - CVE-2024-3008 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-3008
Vulnerability Analysis
The vulnerability affects the formexeCommand handler exposed through the /goform/execCommand URI on the Tenda FH1205 web management interface. This handler processes the cmdinput HTTP parameter without validating its length before copying it into a fixed-size stack buffer. The resulting stack-based buffer overflow [CWE-121] corresponds to an out-of-bounds write [CWE-787] on adjacent stack memory, including saved return addresses and function pointers.
On MIPS-based embedded devices like the FH1205, a controlled overflow of the return address commonly enables return-oriented programming against the device's libc or built-in shell binaries. Successful exploitation compromises confidentiality, integrity, and availability of the router. According to the enriched data, the vendor was contacted about the disclosure but did not respond, and no vendor-issued patch is referenced.
Root Cause
The root cause is missing bounds checking on user-supplied input inside the formexeCommand function. The cmdinput parameter is copied into a stack-allocated buffer using an unsafe string operation, allowing input longer than the destination buffer to overwrite adjacent stack frames.
Attack Vector
An attacker sends a crafted HTTP request to /goform/execCommand on the router's management interface with an oversized cmdinput value. When the request originates from the LAN or from a WAN-exposed management interface, the overflow triggers memory corruption in the web server process. The public writeup on the GitHub Command Execution Exploit provides technical detail on the vulnerable code path.
// No verified exploit code available.
// Attack pattern (conceptual): oversized cmdinput parameter
// submitted via POST to /goform/execCommand overflows the
// stack buffer inside formexeCommand.
Detection Methods for CVE-2024-3008
Indicators of Compromise
- Unusually large cmdinput values in HTTP POST requests targeting /goform/execCommand on Tenda FH1205 devices.
- Router web management process crashes, spontaneous reboots, or watchdog resets shortly after inbound HTTP traffic.
- Outbound connections from the router to unexpected hosts following management interface activity.
Detection Strategies
- Inspect HTTP request logs and IDS/IPS captures for POST requests to /goform/execCommand containing abnormally long parameter values.
- Baseline management interface traffic and alert on non-administrative sources contacting the router's HTTP port.
- Correlate router availability events with recent inbound HTTP traffic to identify likely exploitation attempts.
Monitoring Recommendations
- Forward router syslog and network telemetry to a centralized analytics platform for pattern analysis across devices.
- Monitor for scanning activity that fingerprints Tenda goform endpoints on internal and perimeter networks.
- Track firmware versions across the fleet to identify devices running vulnerable build 2.0.0.7(775).
How to Mitigate CVE-2024-3008
Immediate Actions Required
- Restrict access to the router's web management interface to trusted management VLANs and hosts only.
- Disable remote WAN-side administration on all Tenda FH1205 devices.
- Change default administrative credentials and enforce strong authentication to reduce trivial low-privilege access.
- Segment vulnerable routers from sensitive network zones until a vendor fix is available.
Patch Information
At the time of publication, no vendor patch is referenced in the NVD entry or the linked advisories. The vendor did not respond to disclosure attempts. Monitor the VulDB entry #258294 and Tenda support channels for future firmware updates addressing formexeCommand.
Workarounds
- Place the router behind a firewall that blocks untrusted access to the management HTTP port.
- Use ACLs to permit /goform/execCommand requests only from designated administrative IP addresses.
- Consider replacing end-of-support or unmaintained Tenda FH1205 devices with actively supported hardware.
# Example: restrict router management to a single admin host using iptables on an upstream gateway
iptables -A FORWARD -p tcp -d <router_ip> --dport 80 -s <admin_ip> -j ACCEPT
iptables -A FORWARD -p tcp -d <router_ip> --dport 80 -j DROP
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

