CVE-2024-0540: CWE-121 Stack-based Buffer Overflow in Tenda W9
A vulnerability was found in Tenda W9 1.0.0.7(4456). It has been classified as critical. Affected is the function formOfflineSet of the component httpd. The manipulation of the argument ssidIndex leads to stack-based buffer overflow. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. VDB-250710 is the identifier assigned to this vulnerability. NOTE: The vendor was contacted early about this disclosure but did not respond in any way.
AI Analysis
Technical Summary
CVE-2024-0540 is a stack-based buffer overflow vulnerability identified in the Tenda W9 router, specifically version 1.0.0.7(4456). The flaw exists in the httpd component within the function formOfflineSet, where improper handling of the ssidIndex argument allows an attacker to overflow the stack buffer. This vulnerability can be exploited remotely without user interaction, requiring only low privileges (PR:L) on the device. The buffer overflow can lead to arbitrary code execution or cause denial of service by corrupting the stack, impacting confidentiality, integrity, and availability of the device. The vulnerability has been publicly disclosed, and although no known exploits are currently observed in the wild, the exploit code is available, increasing the risk of future attacks. The vendor, Tenda, was contacted but did not respond or provide a patch, leaving the vulnerability unmitigated. The CVSS v3.1 score is 6.3 (medium severity), reflecting network attack vector, low attack complexity, no user interaction, and partial impact on confidentiality, integrity, and availability. The vulnerability falls under CWE-121, a classic stack-based buffer overflow, which is a well-understood and dangerous class of bugs often leading to remote code execution.
Potential Impact
For European organizations, the impact of this vulnerability depends on the deployment of Tenda W9 routers within their networks. If these devices are used in enterprise or critical infrastructure environments, exploitation could allow attackers to gain control over network gateways, leading to interception or manipulation of sensitive data, disruption of network services, or pivoting to internal systems. The remote exploitability without user interaction increases the risk of automated attacks or worm-like propagation. Confidentiality could be compromised by unauthorized access to network traffic, integrity could be undermined by malicious configuration changes or injection of malicious payloads, and availability could be affected by denial of service conditions caused by crashes or reboots. The lack of vendor response and patch availability exacerbates the risk, as organizations must rely on workarounds or device replacement. Given the medium CVSS score but critical classification by the reporter, organizations should treat this vulnerability seriously, especially those with exposed or poorly segmented network devices.
Mitigation Recommendations
Since no official patch is available from Tenda, European organizations should implement the following specific mitigations: 1) Immediately identify and inventory all Tenda W9 devices running the affected firmware version 1.0.0.7(4456). 2) Isolate these devices from direct internet exposure by placing them behind firewalls or VPNs to limit remote access to the httpd service. 3) Restrict management interfaces to trusted internal networks and enforce strict access controls and network segmentation to minimize attack surface. 4) Monitor network traffic for unusual patterns or attempts to exploit the ssidIndex parameter, using intrusion detection systems with custom signatures if possible. 5) Consider replacing affected devices with models from vendors with active security support if mitigation is not feasible. 6) Regularly review and update network device firmware once a patch becomes available, and subscribe to vendor or vulnerability advisories for updates. 7) Employ network-level protections such as web application firewalls or reverse proxies to filter malicious payloads targeting the vulnerable function.
Affected Countries
Germany, France, United Kingdom, Italy, Spain, Netherlands, Poland
CVE-2024-0540: CWE-121 Stack-based Buffer Overflow in Tenda W9
Description
A vulnerability was found in Tenda W9 1.0.0.7(4456). It has been classified as critical. Affected is the function formOfflineSet of the component httpd. The manipulation of the argument ssidIndex leads to stack-based buffer overflow. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. VDB-250710 is the identifier assigned to this vulnerability. NOTE: The vendor was contacted early about this disclosure but did not respond in any way.
AI-Powered Analysis
Technical Analysis
CVE-2024-0540 is a stack-based buffer overflow vulnerability identified in the Tenda W9 router, specifically version 1.0.0.7(4456). The flaw exists in the httpd component within the function formOfflineSet, where improper handling of the ssidIndex argument allows an attacker to overflow the stack buffer. This vulnerability can be exploited remotely without user interaction, requiring only low privileges (PR:L) on the device. The buffer overflow can lead to arbitrary code execution or cause denial of service by corrupting the stack, impacting confidentiality, integrity, and availability of the device. The vulnerability has been publicly disclosed, and although no known exploits are currently observed in the wild, the exploit code is available, increasing the risk of future attacks. The vendor, Tenda, was contacted but did not respond or provide a patch, leaving the vulnerability unmitigated. The CVSS v3.1 score is 6.3 (medium severity), reflecting network attack vector, low attack complexity, no user interaction, and partial impact on confidentiality, integrity, and availability. The vulnerability falls under CWE-121, a classic stack-based buffer overflow, which is a well-understood and dangerous class of bugs often leading to remote code execution.
Potential Impact
For European organizations, the impact of this vulnerability depends on the deployment of Tenda W9 routers within their networks. If these devices are used in enterprise or critical infrastructure environments, exploitation could allow attackers to gain control over network gateways, leading to interception or manipulation of sensitive data, disruption of network services, or pivoting to internal systems. The remote exploitability without user interaction increases the risk of automated attacks or worm-like propagation. Confidentiality could be compromised by unauthorized access to network traffic, integrity could be undermined by malicious configuration changes or injection of malicious payloads, and availability could be affected by denial of service conditions caused by crashes or reboots. The lack of vendor response and patch availability exacerbates the risk, as organizations must rely on workarounds or device replacement. Given the medium CVSS score but critical classification by the reporter, organizations should treat this vulnerability seriously, especially those with exposed or poorly segmented network devices.
Mitigation Recommendations
Since no official patch is available from Tenda, European organizations should implement the following specific mitigations: 1) Immediately identify and inventory all Tenda W9 devices running the affected firmware version 1.0.0.7(4456). 2) Isolate these devices from direct internet exposure by placing them behind firewalls or VPNs to limit remote access to the httpd service. 3) Restrict management interfaces to trusted internal networks and enforce strict access controls and network segmentation to minimize attack surface. 4) Monitor network traffic for unusual patterns or attempts to exploit the ssidIndex parameter, using intrusion detection systems with custom signatures if possible. 5) Consider replacing affected devices with models from vendors with active security support if mitigation is not feasible. 6) Regularly review and update network device firmware once a patch becomes available, and subscribe to vendor or vulnerability advisories for updates. 7) Employ network-level protections such as web application firewalls or reverse proxies to filter malicious payloads targeting the vulnerable function.
Affected Countries
For access to advanced analysis and higher rate limits, contact root@offseq.com
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- VulDB
- Date Reserved
- 2024-01-14T17:22:06.203Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 683f034b182aa0cae27e66b6
Added to database: 6/3/2025, 2:14:35 PM
Last enriched: 7/4/2025, 2:41:52 PM
Last updated: 8/15/2025, 8:59:44 AM
Views: 11
Related Threats
CVE-2025-9047: SQL Injection in projectworlds Visitor Management System
MediumCVE-2025-9046: Stack-based Buffer Overflow in Tenda AC20
HighCVE-2025-9028: SQL Injection in code-projects Online Medicine Guide
MediumCVE-2025-26709: CWE-200 Exposure of Sensitive Information to an Unauthorized Actor in ZTE F50
MediumCVE-2025-9027: SQL Injection in code-projects Online Medicine Guide
MediumActions
Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.
Need enhanced features?
Contact root@offseq.com for Pro access with improved analysis and higher rate limits.