Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCredential access (default/weak passwords)
-
DeliveryAuthenticate to web interface
-
ExploitSend crafted POST to /cgi-bin/cstecgi.cgi
-
InstallOverflow mac_address buffer
-
C2Overwrite return address
-
ExecuteExecute arbitrary code as root
-
ImpactInstall 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 | Exploitation requires authenticated access to the router's web management interface at privilege level PR:L (low privilege), typically any valid administrator account credentials. The router must be running the vulnerable firmware version 3.2.4-B20220812 and have the MAC address filtering configuration interface accessible via the web UI. The specific attack targets the POST request handler for /cgi-bin/cstecgi.cgi when processing setMacFilterRules function calls, meaning this administrative function must be reachable by the authenticated user role. No unusual network configuration is required beyond standard web interface access (typically HTTP/HTTPS on ports 80/8080/443). Exploitation does not require user interaction beyond the attacker's own authentication (UI:N). The AV:N vector indicates the attack can be conducted remotely over the network, but the authentication requirement means attackers must first compromise credentials or exploit routers using default/weak passwords. Defense limiting factors: authentication requirement provides initial barrier; routers not exposed to internet significantly reduce attack surface; strong unique admin credentials raise exploitation difficulty; disabling remote management limits access to local network only. |
| Impact | Real-world risk is moderate to high for exposed devices. The CVSS 4.0 vector (AV:N/AC:L/PR:L) indicates network-based exploitation with low complexity requiring only low-privilege authentication, typically router admin credentials which are often default or weak on consumer IoT devices. The E:P (Proof-of-concept) metric confirms public exploit availability, verified by the Notion-hosted technical writeup. However, the PR:L requirement means attackers must first obtain router credentials through credential stuffing, default password exploitation, or social engineering - this is a significant but not insurmountable barrier. The lack of EPSS score and KEV listing suggests exploitation is not yet widespread, but the public POC changes this calculus rapidly. IoT devices like routers have extended exposure windows since consumers rarely update firmware. The VC:H/VI:H/VA:H ratings indicate complete device compromise is achievable. Key missing data: no independent confirmation of affected version range beyond 3.2.4-B20220812, no information on whether newer firmware versions are patched. VulDB reporting (not vendor disclosure) suggests this may be researcher-discovered without coordinated disclosure, potentially leaving users unaware. |
| Exploit ScenarioDerived | An attacker identifies a Totolink N300RH router exposed on the internet via Shodan or similar scanning, then attempts default credentials (admin/admin or common variants) to authenticate to the web interface. Upon successful login with low-privilege credentials, the attacker crafts a malicious POST request to /cgi-bin/cstecgi.cgi targeting the setMacFilterRules function, inserting a payload exceeding 256 bytes in the mac_address parameter to overflow the buffer. The overflow overwrites the return address on the stack with shellcode address, redirecting execution to attacker-controlled code that establishes a reverse shell or installs persistent backdoor firmware, achieving complete router compromise and potential pivot point into the internal network. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – May 04, 2026
Remote authenticated attackers can execute arbitrary code on Totolink N300RH 3.2.4-B20220812 routers via buffer overflow in the setMacFilterRules function. Exploitation requires low-privilege authentication to the router's web interface, then sending a crafted POST request with an oversized mac_address parameter to /cgi-bin/cstecgi.cgi. Public exploit code is available (documented on Notion), significantly lowering the barrier to exploitation. EPSS data not available, but the combination of network attack vector, publicly available POC, and vulnerable IoT device suggest moderate real-world risk for internet-exposed routers with default or weak credentials.
Earlier versions of this analysis (1)
Buffer overflow in Totolink N300RH router firmware 3.2.4-B20220812 enables remote authenticated attackers to achieve complete system compromise via the MAC address filtering interface. A publicly available proof-of-concept exploit demonstrates how crafted POST requests to /cgi-bin/cstecgi.cgi can overflow the mac_address parameter in setMacFilterRules function, leading to arbitrary code execution with high confidentiality, integrity, and availability impact (CVSS 8.8). While authentication is required (PR:L), the low attack complexity (AC:L) and network attack vector (AV:N) make this exploitable by any user with basic router credentials against default configurations.
RemediationAI
No vendor-released security patch has been identified at the time of analysis despite the public disclosure. Users should immediately check https://www.totolink.net/ for firmware updates newer than 3.2.4-B20220812, though the lack of vendor advisory suggests a patch may not be available. Compensating controls with their trade-offs: (1) Disable remote management interfaces entirely and restrict web admin access to local network only via router firewall rules - this prevents internet-based exploitation but requires physical/VPN access for configuration changes. (2) Change default administrator credentials to strong unique passwords immediately - this raises the authentication barrier (PR:L requirement) but does not eliminate risk if credentials are later compromised. (3) If MAC address filtering is not required for your network security model, disable the feature entirely to remove the vulnerable attack surface - this eliminates the specific vulnerability but removes a network access control mechanism some environments rely on. (4) Place the router behind a more secure edge device or replace with a different model if Totolink does not release a patch within your organization's risk tolerance window. Monitor VulDB (https://vuldb.com/vuln/360925) and vendor channels for patch announcements.
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 resides in the setMacFilterRules CGI function within the Totolink N300RH router firmware (version 3.2.4-B20220812), specifically in the POST request handler at /cgi-bin/cstecgi.cgi. The root cause is CWE-120, a classic buffer overflow where insufficient bounds checking allows an attacker to write beyond allocated memory when processing the mac_address parameter. Buffer overflows in embedded device CGI handlers are common because firmware developers often use unsafe C functions (strcpy, sprintf) without input validation. The CGI endpoint likely expects MAC addresses in standard format (e.g., AA:BB:CC:DD:EE:FF) but fails to enforce maximum length, allowing attackers to supply arbitrarily long strings that overwrite adjacent memory regions, including return addresses and function pointers. The affected product CPE (cpe:2.3:a:totolink:n300rh) identifies this as a Totolink N300RH wireless router application firmware component.
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 vulnerability was detected in Totolink N300RH 3.2.4-B20220812. This vulnerability affects the function setMacFilterRules of the file /cgi-bin/cstecgi.cgi of the component POST Request Handler. The manipulation of the argument mac_address results in buffer overflow. The attack may be launched remotely. The exploit is now public and may be used.
Executive ViewAI
Totolik N300RH routers (version 3.2.4-B20220812 and potentially earlier) are vulnerable to remote code execution via an authenticated buffer overflow attack. Attackers with low-privilege web interface access can execute arbitrary code by sending a malformed request, and publicly available exploit code significantly increases real-world attack likelihood. Organizations operating these devices face direct compromise risk if routers are internet-exposed or accessible to untrusted users.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable or restrict remote web interface access via firewall rules; (2) enforce strong authentication credentials and multi-factor authentication if supported; (3) segment IoT devices on isolated VLAN with egress filtering; (4) implement network intrusion detection signatures for malformed POST requests to vulnerable CGI endpoints; (5) prioritize replacement with vendor-supported firmware or hardware.
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
Buffer overflow in Totolink N300RH router firmware 3.2.4-B20220812 allows authenticated remote attackers to achieve comp
Buffer overflow in Totolink N300RH router firmware 3.2.4-B20220812 enables authenticated remote attackers to achieve cod
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-26942
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB