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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
8DescriptionCVE.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.
AnalysisAI
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.
Technical ContextAI
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.
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.
Same weakness CWE-120 – Classic Buffer Overflow
View allSame technique Buffer Overflow
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-25974