Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Trendnet TEW-657BRM web interface
-
ExploitSubmit crafted mac_pc_dba parameter to /setup.cgi
-
ExecutionTrigger stack-based buffer overflow in add_apcdb function
-
ImpactExecute arbitrary code with device privileges
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Authenticated access required to Trendnet TEW-657BRM 1.00.1 router's /setup.cgi interface. Attacker must send crafted request with oversized mac_pc_dba parameter to add_apcdb function. Product discontinued since June 2011; no vendor support available. |
| Impact | Real-world risk assessment presents a nuanced picture. The CVSS 4.0 score of 7.4 reflects high confidentiality, integrity, and availability impact (VC:H/VI:H/VA:H) with an exploit maturity indicator of POC available (E:P). The publicly available exploit code on GitHub substantially increases exploitation risk for the limited installed base. However, multiple mitigating factors reduce overall urgency: (1) the product reached end-of-life over 14 years ago in 2011, meaning the deployed footprint is extremely small compared to current products; (2) authentication is required (PR:L), limiting attack surface to scenarios where credentials are compromised or default/weak passwords remain in use; (3) no EPSS score or CISA KEV inclusion suggests no observed mass exploitation campaigns; (4) the vendor's discontinuation statement and public disclosure mean remaining users have been warned. From an SSVC perspective, while technical impact is total system compromise and exploitation is proven possible with public POC, automatable mass exploitation is constrained by the authentication requirement and small target population. Organizations should prioritize this only if TEW-657BRM devices are confirmed in their inventory; otherwise, this represents a low-priority issue affecting obsolete equipment that should have been replaced years ago per standard hardware lifecycle policies. |
| Exploit ScenarioDerived | An attacker who has obtained valid administrative credentials to a Trendnet TEW-657BRM router (through credential stuffing, default password usage, or phishing) connects remotely to the web management interface and crafts a malicious HTTP request to /setup.cgi. The attacker includes an oversized payload in the mac_pc_dba parameter designed to overflow the stack buffer in the add_apcdb function, overwriting the return address to redirect execution to attacker-controlled shellcode. Upon successful exploitation, the attacker gains root-level code execution on the router, enabling installation of persistent backdoors, traffic interception, DNS hijacking to redirect users to malicious sites, or use of the compromised router as a pivot point for lateral movement into the internal network. The publicly available exploit code on GitHub provides a ready-made attack tool, eliminating the need for advanced exploit development skills. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 02, 2026
Stack-based buffer overflow in Trendnet TEW-657BRM router firmware 1.00.1 allows authenticated remote attackers to achieve arbitrary code execution via the mac_pc_dba parameter in /setup.cgi's add_apcdb function. The product was discontinued in 2011 and receives no vendor support. A public exploit exists on GitHub, significantly lowering the barrier for exploitation against unpatched devices still deployed in production environments.
RemediationAI
No vendor-released patch exists or will be developed, as Trendnet discontinued the TEW-657BRM router in 2011 and explicitly states they no longer provide support or vulnerability confirmation for this product line. The only secure remediation is immediate hardware replacement with a currently supported router model that receives active security updates. Organizations that identify TEW-657BRM devices in their networks should prioritize decommissioning and replacement as part of standard end-of-life hardware retirement procedures. As an interim risk reduction measure until replacement, restrict administrative access to the device by implementing network segmentation, disabling remote management interfaces, enforcing strong authentication credentials if default passwords are in use, and limiting access to trusted administrator IP addresses via firewall rules. However, these workarounds do not eliminate the vulnerability and should be considered temporary measures only. The vendor advisory is available at https://vuldb.com/vuln/354702 with technical details and exploit code documented at https://github.com/panda666-888/vuls/blob/main/trendnet/tew-657brm/add_apcdb.md.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability affects the Trendnet TEW-657BRM wireless router (CPE: cpe:2.3:a:trendnet:tew-657brm:*:*:*:*:*:*:*:*), specifically firmware version 1.00.1. The flaw is a CWE-121 stack-based buffer overflow in the add_apcdb function within the /setup.cgi CGI script handler. When processing the mac_pc_dba parameter, insufficient input validation allows an attacker to write beyond the allocated stack buffer boundary. Stack-based overflows are particularly dangerous in embedded device firmware because they can overwrite return addresses and enable arbitrary code execution with the privilege level of the web server process, typically root on embedded Linux systems. The CVSS vector indicates network-accessible attack surface (AV:N), low complexity (AC:L), and requires low privileges (PR:L), meaning any authenticated user can trigger the overflow. The vulnerability class is well-understood and reliably exploitable on devices without modern memory protection mechanisms like ASLR or stack canaries, which are often absent in legacy router firmware.
Know when Tew 657Brm gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability was identified in Trendnet TEW-657BRM 1.00.1. The affected element is the function add_apcdb of the file /setup.cgi. The manipulation of the argument mac_pc_dba leads to stack-based buffer overflow. The attack can be initiated remotely. The exploit is publicly available and might be used. The vendor confirms, that "[t]he product in question (...) has been discontinued and end of life since June 23, 2011, that is more than 14 years ago. We no longer provide support for this product, so we are not able to confirm the vulnerabilities. We will make an announcement on our website's product support page and notify customers who registered their products with us." This vulnerability only affects products that are no longer supported by the maintainer.
Executive ViewAI
CVE-2026-5349 affects legacy Trendnet TEW-657BRM routers (discontinued 2011) and enables authenticated attackers to execute arbitrary code through a stack buffer overflow. Organizations still operating these devices face critical risk of network compromise and lateral movement, as the vendor provides no security updates and public exploit code is available.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict network access to affected routers via firewall rules blocking inbound access to /setup.cgi and administrative ports; (2) Disable remote management interfaces and enforce local-only administrative access; (3) Monitor for suspicious activity on affected devices and segment them from critical infrastructure; (4) Consider network appliance replacement as the preferred control given end-of-life status and availability of public exploit code.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
Related Vulnerabilities in Trendnet TEW-657BRM Buffer Overflow
View all 2More in Tew 657Brm
View allRemote authenticated command injection in TrendNet TEW-657BRM 1.00.1 allows manipulation of the policy_name parameter in
OS command injection in Trendnet TEW-657BRM 1.00.1 ping_test function allows authenticated remote attackers to execute a
Remote code execution via OS command injection in TrendNet TEW-657BRM 1.00.1 allows authenticated attackers to execute a
OS command injection in TrendNet TEW-657BRM 1.00.1 router allows authenticated remote attackers to execute arbitrary com
EUVD-2026-18358
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB