Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsStudyTraining
ProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Study
Training
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

1310+ Articles
157+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2026-10187: Totolink N300RH Stack Buffer Overflow in WiFi Config
CVE-2026-10187: Totolink N300RH Stack Buffer Overflow in WiFi Config

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2026-10187

CVE-2026-10187: Totolink N300RH Stack Buffer Overflow in WiFi Config

A critical-severity stack buffer overflow in the Totolink N300RH wireless router allows remote attackers to execute arbitrary code via a crafted KeyStr argument in the setWiFiBasicConfig function.

Dylan H.

Security Team

June 1, 2026
5 min read

Affected Products

  • Totolink N300RH 6.1c.1353_B20190305

CVE-2026-10187: Totolink N300RH Stack Buffer Overflow in setWiFiBasicConfig

A critical-severity stack buffer overflow tracked as CVE-2026-10187 has been disclosed in the Totolink N300RH wireless router. The vulnerability resides in the setWiFiBasicConfig function within the wireless.so component of the device's Web Management Interface. By manipulating the KeyStr argument, an attacker can trigger a stack-based buffer overflow, potentially leading to remote code execution (RCE).

The vulnerability was published on May 31, 2026, and carries a CVSS v3.1 score of 9.8 (Critical), reflecting its remote exploitability without authentication requirements.


Vulnerability Overview

AttributeValue
CVE IDCVE-2026-10187
CVSS Score9.8 (Critical)
CWE ClassificationCWE-121 — Stack-based Buffer Overflow
Affected ComponentsetWiFiBasicConfig in wireless.so
Vulnerable ParameterKeyStr
Attack VectorNetwork (Remote)
Authentication RequiredNone
Privileges RequiredNone
Primary ImpactRemote Code Execution / Denial of Service
PublishedMay 31, 2026

Affected Products

ProductFirmware Version
Totolink N300RH6.1c.1353_B20190305

The Totolink N300RH is a consumer-grade wireless router. The affected firmware version (6.1c.1353_B20190305) appears to be an older release, and Totolink has not released a patch as of publication. Users of this device should check Totolink's official support channels for updated firmware.


Technical Details

Root Cause

The setWiFiBasicConfig function in wireless.so handles WiFi configuration requests via the router's Web Management Interface. The function processes the KeyStr parameter — which represents a WiFi password or WEP key string — without performing proper length validation before copying it into a fixed-size stack buffer.

When an attacker submits an overly long value for KeyStr, the function copies the oversized input directly onto the stack, overflowing the allocated buffer. This corrupts adjacent stack memory including return addresses and saved frame pointers.

Exploitation

Remote Exploitability

The Web Management Interface is typically accessible over the local network and, in many default configurations, may be reachable remotely if WAN management is enabled. The CVSS score of 9.8 reflects the assumption that the interface is network-accessible.

Stack Overflow Path

HTTP POST to WiFi config endpoint
  → setWiFiBasicConfig() in wireless.so
    → KeyStr parameter copied to stack buffer
      → No bounds checking performed
        → Stack buffer overflow triggered
          → Return address overwritten
            → Arbitrary code execution (as root)

Denial of Service

Even without a weaponized exploit, sending an oversized KeyStr value reliably crashes the router's web management process or causes a full device reboot, constituting a denial of service.


Impact Assessment

Impact AreaDescription
Remote Code ExecutionPotential full device takeover with root privileges
Denial of ServiceReliable device crash via oversized KeyStr
Network IntegrityCompromised router can intercept, reroute, or inspect all traffic
Lateral MovementRouter compromise enables network-level attacks on connected devices
Home/SMB NetworksConsumer routers rarely have additional compensating controls

Remediation

Recommended Actions

  1. Check for firmware updates — Visit Totolink's official support page and upgrade to the latest available firmware for the N300RH
  2. Disable WAN management — Ensure the Web Management Interface is not accessible from the internet (disable remote management in router settings)
  3. Restrict management access — If possible, bind the management interface to specific trusted IP addresses or a dedicated management VLAN
  4. Consider device replacement — The N300RH 6.1c.1353_B20190305 firmware dates from 2019; devices running end-of-support firmware should be replaced

Temporary Mitigations

1. Admin Panel → Remote Management → Disable
2. Admin Panel → Firewall → Block external access to port 80/443
3. Change default admin credentials if not already done
4. Monitor router logs for unexpected configuration changes

Context: Router Vulnerabilities and Consumer Risk

Consumer and small business routers are among the most frequently targeted devices in threat actor campaigns. Compromised routers are used to:

  • Intercept unencrypted traffic between devices and the internet
  • Deploy botnet agents for DDoS campaigns
  • Pivot into internal networks for further exploitation
  • Redirect DNS to phishing or malware-serving infrastructure

Router firmware vulnerabilities are particularly dangerous because:

  1. Many users never apply firmware updates
  2. Vendor support for older hardware is often minimal or absent
  3. Administrative interfaces may be inadvertently exposed to the internet
  4. Routers run continuously with minimal monitoring

Key Takeaways

  1. CVE-2026-10187 is a CVSS 9.8 critical stack buffer overflow in the Totolink N300RH's WiFi configuration handler
  2. The flaw is remotely exploitable without authentication, making it trivially accessible to network attackers
  3. No official patch has been confirmed as of June 1, 2026 — users should monitor Totolink's advisory channels
  4. Immediate mitigations include disabling remote management and restricting admin interface access
  5. Organizations and home users running this device should prioritize replacement given the firmware's age and lack of ongoing support

Sources

  • CVE-2026-10187 — NIST NVD
  • VulDB — CVE-2026-10187 Advisory
#CVE-2026-10187#Totolink#Router#Stack Buffer Overflow#CWE-121#Remote Code Execution#Vulnerability

Related Articles

CVE-2026-5977: TOTOLINK A7100RU Critical OS Command

A critical OS command injection vulnerability (CVSS 9.8) in TOTOLINK A7100RU routers allows unauthenticated remote attackers to execute arbitrary system...

4 min read

CVE-2026-5978: TOTOLINK A7100RU Critical OS Command

A second critical OS command injection vulnerability (CVSS 9.8) in TOTOLINK A7100RU routers allows unauthenticated remote attackers to execute arbitrary...

5 min read

CVE-2016-20049: JAD Java Decompiler Stack-Based Buffer

JAD 1.5.8e-1kali1 and prior contains a critical stack-based buffer overflow vulnerability allowing attackers to execute arbitrary code by supplying input...

6 min read
Back to all Security Alerts