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 /boafrm/formWsc
-
InstallTrigger buffer overflow in is_cmd_string_valid
-
C2Overwrite return address
-
ExecuteExecute shellcode as root
-
ImpactEstablish persistence via firmware modification
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 administrative access to the Totolink N300RT web interface (CVSS PR:H). The attacker must reach the router's HTTP/HTTPS management interface over the network (AV:N), which depends on deployment configuration: routers with internet-facing admin panels (common in default configurations or UPnP-enabled setups) are directly exploitable remotely, while devices with admin interfaces restricted to local LAN require the attacker to first compromise a host on the internal network. The vulnerable /boafrm/formWsc endpoint is part of standard WPS configuration functionality and enabled by default in firmware 3.4.0-B20250430. No special non-default settings are required beyond having the web interface active. Network access alone is insufficient - valid admin credentials are mandatory, making password strength the primary limiting factor against exploitation. |
| Impact | Real-world risk is MODERATE-HIGH despite 7.3 CVSS score. The PR:H (high privileges required) constraint significantly reduces attack surface - exploitation demands compromised admin credentials first. However, several factors elevate concern: (1) Public POC on GitHub enables script-kiddie attacks against routers with weak/default admin passwords, (2) AC:L (low attack complexity) means exploitation is reliable once credentials obtained, (3) VC:H/VI:H/VA:H indicates complete system compromise (confidentiality, integrity, availability), (4) Home routers like N300RT frequently retain default credentials or use weak passwords, lowering the privilege requirement barrier in practice. Absence from CISA KEV and lack of EPSS data suggests exploitation not yet automated or widespread, but the POC availability creates a ticking clock for bulk scanning campaigns targeting exposed admin interfaces. Priority depends on deployment context: HIGH for internet-facing admin panels with credential stuffing risk, MODERATE for properly segmented management networks with strong authentication. |
| Exploit ScenarioDerived | An attacker first obtains Totolink N300RT admin credentials via credential stuffing, brute force against weak passwords, or phishing targeting the device owner. With authenticated access to the web interface, the attacker sends a specially crafted HTTP POST request to /boafrm/formWsc containing an oversized localPin parameter (e.g., 500+ byte payload with embedded shellcode). The is_cmd_string_valid function in libapmib.so fails to validate input length, overwriting the stack return address. Upon function return, execution redirects to attacker-controlled shellcode, achieving arbitrary code execution as the web server process (likely root), enabling firmware backdooring, credential harvesting, or pivot to internal network. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Apr 28, 2026
Buffer overflow in Totolink N300RT 3.4.0-B20250430 enables authenticated remote code execution via the WPS configuration handler. An attacker with administrative credentials (PR:H) can send a crafted localPin parameter to /boafrm/formWsc, overflowing a buffer in the is_cmd_string_valid function (libapmib.so) to execute arbitrary code with full system access (VC:H/VI:H/VA:H). Public proof-of-concept exploit code exists on GitHub (xiaohaiyang-ai/TOTOLINK-N300RT-Buffer-Overflow), increasing weaponization risk despite requiring privileged access. EPSS data not available; no CISA KEV listing indicates exploitation not yet widespread in wild attacks.
Earlier versions of this analysis (1)
Buffer overflow in Totolink N300RT router firmware version 3.4.0-B20250430 allows authenticated administrators to execute arbitrary code remotely via crafted localPin parameter in the WPS configuration handler. The vulnerability resides in the is_cmd_string_valid function within libapmib.so's /boafrm/formWsc endpoint. Public exploit code demonstrates weaponization. EPSS data not available, but publicly documented POC combined with network attack vector and high privileges requirement suggests targeted rather than widespread exploitation risk. CVSS 7.2 reflects administrative access prerequisite, which significantly limits attack surface compared to unauthenticated network vulnerabilities.
RemediationAI
No vendor-released patch or updated firmware version has been identified in Totolink's official channels (www.totolink.net) or the CVE references. Users should immediately implement compensating controls: (1) Disable remote administration - restrict web interface access to local LAN only via router settings (blocks AV:N attack vector entirely; trade-off: no remote management capability), (2) Change default admin credentials to strong unique passwords 16+ characters with symbols (raises bar for PR:H requirement; verify using password manager), (3) Disable WPS functionality if not required - reduces attack surface by removing /boafrm/formWsc endpoint exposure (trade-off: manual WiFi setup required for new devices), (4) Deploy network segmentation - place router admin interface on isolated VLAN accessible only from trusted management hosts (limits lateral movement post-compromise). Monitor VulDB (https://vuldb.com/vuln/359818) and Totolink security advisories for firmware updates. Consider replacing device if vendor does not release patch within 90 days, as public POC availability will drive exploitation attempts against unpatched installations.
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
The vulnerability resides in libapmib.so, a shared library handling AP management and configuration functions for the Totolink N300RT router. The affected function is_cmd_string_valid performs input validation for WPS (Wi-Fi Protected Setup) configuration requests processed via the BoaForm CGI handler at /boafrm/formWsc. CWE-120 (Classic Buffer Overflow) indicates insufficient bounds checking when copying the localPin argument into a fixed-size stack or heap buffer. The CVSS vector AV:N (network attack vector) confirms the formWsc endpoint is accessible over HTTP/HTTPS to authenticated users. The libapmib.so library likely runs with elevated privileges to manage wireless configuration, making buffer overflows in this context highly impactful for arbitrary code execution as root or the web server's effective UID.
Know when N300Rt 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:H/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 N300RT 3.4.0-B20250430. The impacted element is the function is_cmd_string_valid of the file /boafrm/formWsc of the component libapmib.so. Performing a manipulation of the argument localPin results in buffer overflow. The attack is possible to be carried out remotely. The exploit is now public and may be used.
Executive ViewAI
CVE-2026-7218 is a high-severity buffer overflow in Totolink N300RT wireless routers (version 3.4.0-B20250430) that allows authenticated administrators to execute arbitrary code with full system privileges through a malformed WPS configuration request. Organizations deploying this router model face risk of complete device compromise and potential lateral network movement if administrative credentials are compromised or misused by insider threats.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict administrative console access via firewall rules to authorized administrator IP addresses only; (2) Disable WPS feature if not operationally required; (3) Enforce strong, unique administrative credentials and implement credential access monitoring; (4) Isolate affected routers to dedicated administrative VLAN with enhanced logging; (5) Establish change control process requiring approval and logging of any device configuration modifications.
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.
EUVD-2026-25974
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB