Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain router credentials
-
DeliveryAuthenticate to web interface
-
ExploitSend crafted POST to /cgi-bin/cstecgi.cgi
-
InstallTrigger buffer overflow in setUpgradeFW
-
C2Overwrite return pointer
-
ExecuteExecute shellcode as root
-
ImpactEstablish persistent backdoor
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer copy size validation
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 | Requires valid low-privilege authenticated access (PR:L) to the Totolink N300RH web administration interface - specifically, an attacker must possess valid admin credentials to send POST requests to /cgi-bin/cstecgi.cgi. The vulnerability is exploitable against default configurations of firmware version 3.2.4-B20220812 once authentication is achieved. No additional feature enablement or non-default configuration is required beyond the standard web interface being accessible. Exploitation is limited by credential requirements - devices with default/weak passwords face significantly higher risk, especially if admin interfaces are exposed to WAN/internet. Devices with strong unique credentials and admin access restricted to LAN-only are substantially harder to exploit despite the network attack vector (AV:N), as attackers must first compromise credentials or achieve local network position. |
| Impact | CVSS 4.0 vector shows network attack vector (AV:N), low complexity (AC:L), no attack complexity (AT:N), requiring low privileges (PR:L), with high impact to confidentiality, integrity, and availability (VC:H/VI:H/VA:H) but no impact to subsequent systems (SC:N/SI:N/SA:N). The Exploit maturity indicator E:P confirms proof-of-concept exists. Public exploit code is documented on Notion per references. However, this vulnerability requires authentication (PR:L) to the router's admin interface, significantly limiting attack surface compared to unauthenticated RCE. No EPSS score provided in input data. Not present in CISA KEV, indicating no confirmed widespread exploitation despite public POC availability. Real-world risk is moderate: while the vulnerability enables complete device compromise, exploitation requires prior credential access (default credentials, credential stuffing, or phishing). For internet-facing routers with weak/default credentials, risk escalates substantially. Organizations should prioritize if Totolink N300RH devices are deployed, especially in edge/remote office scenarios where admin interfaces may be exposed. |
| Exploit ScenarioDerived | An attacker who has obtained credentials to the Totolink N300RH admin interface (via default credentials, credential reuse, or prior compromise) authenticates to the web management portal over the network. Using the publicly available exploit code documented on Notion, the attacker sends a crafted POST request to /cgi-bin/cstecgi.cgi targeting the setUpgradeFW function with a maliciously oversized FileName parameter designed to overflow the stack buffer. The overflow overwrites the return address, redirecting execution to attacker-controlled shellcode that executes with root privileges, granting complete control over the router to establish persistence, intercept traffic, or pivot to internal network devices. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – May 04, 2026
Buffer overflow in Totolink N300RH router firmware 3.2.4-B20220812 enables authenticated remote attackers to achieve code execution via crafted FileName parameter to the setUpgradeFW function in /cgi-bin/cstecgi.cgi. Public exploit code is available (documented in Notion). CVSS 7.4 with CVSS 4.0 Exploit maturity 'Proof-of-concept' confirms POC exists. Not listed in CISA KEV, suggesting limited real-world exploitation despite public POC.
Earlier versions of this analysis (1)
Buffer overflow in Totolink N300RH 3.2.4-B20220812 firmware allows authenticated remote attackers to achieve high-impact compromise (potential code execution, data theft, and denial of service) via crafted FileName parameter in POST requests to /cgi-bin/cstecgi.cgi setUpgradeFW function. Public exploit code exists (POC available on Notion), significantly lowering exploitation barrier. CVSS 8.8 reflects network attack vector with low complexity, though authentication requirement (PR:L) provides some defense. No patch availability data identified - vendor security posture unclear given absence of public advisory from totolink.net.
RemediationAI
No vendor-released security patch or firmware update has been identified in the available references at time of analysis. Check Totolink's official support site (https://www.totolink.net/) for firmware updates newer than 3.2.4-B20220812. Compensating controls: Disable remote administration access to the router web interface from WAN/internet side - configure firewall rules to block external access to ports 80/443/8080 on the device's WAN IP, limiting admin access to LAN-side only (trade-off: eliminates remote management capability). Change default administrative credentials immediately to strong unique passwords, as PR:L requirement means attackers need valid credentials (trade-off: does not fix the vulnerability but raises exploitation bar). Implement network segmentation to isolate IoT/router management networks from critical systems, limiting blast radius if device is compromised. For enterprise deployments, consider replacing affected devices with enterprise-grade equipment that receives regular security updates. Monitor device logs for unexpected POST requests to /cgi-bin/cstecgi.cgi with abnormally long FileName parameters as potential exploitation attempts.
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 is a classic stack-based buffer overflow (CWE-120) in the firmware upgrade handler of a consumer-grade router. The vulnerable function setUpgradeFW processes POST requests to /cgi-bin/cstecgi.cgi without proper bounds checking on the FileName parameter, allowing an attacker to write beyond allocated buffer boundaries. Consumer router firmware often uses CGI scripts written in C/C++ for web interfaces, and inadequate input validation in file upload handlers is a common vulnerability pattern. The CPE cpe:2.3:a:totolink:n300rh:*:*:*:*:*:*:*:* identifies this as an application-layer vulnerability in Totolink's N300RH product line. Buffer overflows in embedded device firmware can lead to arbitrary code execution with the privileges of the web server process, typically root on such devices.
Know when N300Rh 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
4DescriptionCVE.org
A weakness has been identified in Totolink N300RH 3.2.4-B20220812. Affected by this issue is the function setUpgradeFW of the file /cgi-bin/cstecgi.cgi of the component POST Request Handler. Executing a manipulation of the argument FileName can lead to buffer overflow. The attack can be launched remotely. The exploit has been made available to the public and could be used for attacks.
Executive ViewAI
Totolik N300RH router firmware 3.2.4-B20220812 contains a buffer overflow vulnerability in the firmware upgrade function that allows authenticated remote attackers to execute arbitrary code. Organizations deploying this router model face immediate risk of remote compromise by authenticated threat actors, potentially enabling lateral network movement and data exfiltration from connected networks.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict administrative access to affected routers using network-level controls (firewall rules, VPN-only admin access); (2) Disable remote management features if not operationally required; (3) Implement network segmentation to isolate router management interfaces; (4) Monitor for suspicious upgrade requests to affected devices; (5) Maintain offline backup of current firmware configuration pending patch availability.
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.
OS command injection in the Totolink N300RH router (firmware 6.1c.1353_B20190305) allows remote unauthenticated attacker
Stack-based buffer overflow in the Totolink N300RH router (firmware 6.1c.1353_B20190305) allows remote attackers to corr
Remote unauthenticated attackers can execute arbitrary code on Totolink N300RH routers version 3.2.4-B20220812 by sendin
Remote authenticated attackers can execute arbitrary code on Totolink N300RH 3.2.4-B20220812 routers via buffer overflow
Buffer overflow in Totolink N300RH router firmware 3.2.4-B20220812 allows authenticated remote attackers to achieve comp
Remote code execution in Totolink N300RH firmware 6.1c.1353_B20190305 allows unauthenticated network attackers to execut
External file inclusion in Totolink N300RH firmware 6.1c.1353_B20190305 allows remote unauthenticated attackers to manip
EUVD-2026-26939
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB