Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain admin credentials
-
DeliveryAuthenticate to web interface
-
ExploitSend crafted POST to /cgi-bin/cstecgi.cgi
-
InstallOverflow priDns buffer
-
C2Overwrite return address
-
ExecuteExecute shellcode 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 | Attacker must possess valid authentication credentials (username and password) for the Totolink N300RH administrative web interface, as indicated by CVSS PR:L (low privileges required). The router's web management interface must be network-accessible to the attacker - either exposed to the internet via WAN-side management (non-default configuration on most routers) or accessible from a compromised device on the LAN side. Default configurations typically restrict admin access to LAN only, which would require the attacker to first compromise a device on the internal network. The specific vulnerable firmware version 3.2.4-B20220812 must be running. No special router features need to be enabled beyond the standard web-based configuration interface. Limiting factors: authentication requirement prevents fully unauthenticated remote exploitation; exploitation from internet requires non-default remote management enabled; attack complexity is low (AC:L) once credentials are obtained, requiring no race conditions or specialized timing. |
| Impact | Real-world risk is MODERATE despite the 7.4 CVSS score due to required authentication (PR:L) and the limited deployment scope of this specific router model. The CVSS 4.0 vector shows network-accessible attack (AV:N) with low complexity (AC:L) requiring low-privilege authentication but no user interaction (UI:N), leading to high impact on device confidentiality, integrity, and availability (VC:H/VI:H/VA:H) with no scope change (SC:N/SI:N/SA:N). The E:P modifier confirms proof-of-concept exploit exists publicly. However, EPSS data is not provided, CISA KEV status is absent (suggesting no confirmed widespread exploitation), and SSVC indicators point to lower priority: exploitation requires authenticated access to router admin interface, attack is automatable post-authentication but requires credential compromise first, and technical impact is limited to individual router devices rather than enterprise-scale systems. The primary risk is to environments where router credentials have been compromised through phishing, default passwords, or credential reuse. For organizations using this router model with strong credential hygiene, risk is significantly lower than raw CVSS suggests. Key missing data: EPSS probability score, confirmation of whether default credentials exist, and vendor's security response timeline. |
| Exploit ScenarioDerived | An attacker who has obtained valid credentials for the Totolink N300RH admin interface (through phishing, default password exploitation, or credential stuffing) logs into the router's web management panel remotely. The attacker crafts a malicious HTTP POST request to /cgi-bin/cstecgi.cgi targeting the setWanConfig function, inserting an oversized string (exceeding buffer limits) into the priDns parameter that contains shellcode. The buffer overflow overwrites the stack return address, redirecting execution to attacker-controlled code running with root privileges on the router, allowing installation of persistent backdoors, DNS hijacking for man-in-the-middle attacks, or pivot points into the internal network. Public exploit code documented at lavender-bicycle-a5a.notion.site demonstrates the exact payload structure required. |
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 allows authenticated remote attackers to achieve complete device compromise via crafted DNS parameter in WAN configuration requests. The vulnerability exists in the setWanConfig function within /cgi-bin/cstecgi.cgi POST handler, exploitable by manipulating the priDns argument. Public exploit code is available (CVSS E:P), and CVSS 4.0 score of 7.4 reflects high confidentiality, integrity, and availability impact on the vulnerable device with no cross-scope effects.
Earlier versions of this analysis (1)
Buffer overflow in Totolink N300RH router firmware 3.2.4-B20220812 allows authenticated remote attackers to achieve high-impact compromise including code execution, data theft, and denial of service. The vulnerability resides in the setWanConfig function of /cgi-bin/cstecgi.cgi POST request handler, triggered by malformed priDns parameter input. Public exploit code exists (documented in Notion technical writeup), elevating real-world risk despite requiring low-privilege authentication. EPSS data not available, not listed in CISA KEV, suggesting targeted exploitation rather than widespread campaigns.
RemediationAI
No vendor-released security patch has been identified at time of analysis. Check Totolink's official website (https://www.totolink.net/) and support channels for firmware updates newer than 3.2.4-B20220812, though no specific fixed version is documented in available advisories. Until patching is possible, implement these compensating controls: (1) Disable remote management access to the router's web interface entirely - restricts attack surface to LAN-only, eliminating network-based remote exploitation but requires physical or VPN access for administration; (2) Change default administrative credentials to complex passwords (16+ characters) to prevent initial authentication - does not fix the vulnerability but raises attacker cost significantly; (3) Restrict administrative interface access to specific trusted IP addresses via firewall rules if remote management is required - reduces exposure but depends on static IP availability; (4) Monitor authentication logs for repeated failed login attempts or unusual administrative sessions. If business requirements allow, consider replacing the device with a currently-supported router model from vendors with active security update programs, as this appears to be an end-of-life or minimally-supported product line.
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 embedded router CGI handling code. The setWanConfig function in the cstecgi.cgi POST request handler fails to properly validate the length of the priDns (primary DNS server) parameter before copying it into a fixed-size buffer. Totolink N300RH is a wireless router running proprietary firmware version 3.2.4-B20220812. The vulnerability affects the web management interface's WAN configuration module, which processes network setup parameters. Buffer overflows in CGI handlers on SOHO routers are particularly critical because they often run with root privileges and handle network-facing configuration interfaces. The affected CPE is cpe:2.3:a:totolink:n300rh:*:*:*:*:*:*:*:*, indicating the vulnerability is in the application layer firmware rather than hardware-specific.
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 security vulnerability has been detected in Totolink N300RH 3.2.4-B20220812. This affects the function setWanConfig of the file /cgi-bin/cstecgi.cgi of the component POST Request Handler. The manipulation of the argument priDns leads to buffer overflow. The attack may be initiated remotely. The exploit has been disclosed publicly and may be used.
Executive ViewAI
Totolink N300RH router firmware 3.2.4-B20220812 contains a buffer overflow vulnerability (CVE-2026-7749) that enables authenticated remote attackers to completely compromise affected devices through malicious DNS configuration requests. Organizations deploying this router model risk unauthorized access to network infrastructure, potential lateral movement into corporate networks, and disruption of critical connectivity, particularly where routers serve as security perimeter devices.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict administrative access to the router management interface via firewall rules to trusted IP ranges only; (2) Disable remote WAN configuration capabilities if operational requirements permit; (3) Implement network segmentation to isolate routers from critical infrastructure; (4) Monitor router logs for suspicious WAN configuration requests; (5) Enforce strong authentication credentials on all router accounts.
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 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-26941
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB