A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-6158

CVE-2026-6158: Totolink N300RH Router RCE Vulnerability

CVE-2026-6158 is a remote code execution vulnerability in Totolink N300RH router affecting the setUpgradeUboot function. Attackers can inject OS commands remotely. This article covers technical details, impact, and mitigation.

Updated: May 14, 2026

CVE-2026-6158 Overview

CVE-2026-6158 is an operating system (OS) command injection vulnerability in the TOTOLINK N300RH router running firmware version 6.1c.1353_B20190305. The flaw resides in the setUpgradeUboot function inside the upgrade.so shared object. Attackers can manipulate the FileName argument to inject arbitrary shell commands that the router executes in its operating context. The issue is network-reachable and requires no authentication or user interaction. A public proof-of-concept exploit has been published on GitHub, increasing the likelihood of opportunistic abuse against exposed devices.

Critical Impact

Unauthenticated remote attackers can execute arbitrary OS commands on affected TOTOLINK N300RH devices, leading to full router compromise and pivot opportunities into internal networks.

Affected Products

  • TOTOLINK N300RH router
  • Firmware version 6.1c.1353_B20190305
  • The vulnerable component is the setUpgradeUboot function in upgrade.so

Discovery Timeline

  • 2026-04-13 - CVE-2026-6158 published to the National Vulnerability Database (NVD)
  • 2026-04-29 - Last updated in NVD database

Technical Details for CVE-2026-6158

Vulnerability Analysis

The vulnerability is classified under [CWE-77] Improper Neutralization of Special Elements used in a Command. The setUpgradeUboot handler in upgrade.so accepts a FileName parameter that is concatenated into a shell command string without sanitization. When an attacker supplies shell metacharacters such as backticks, semicolons, or $() constructs in FileName, the embedded payload is executed by the underlying shell.

Because router web services on embedded Linux devices typically run as root, successful injection yields full administrative control. Attackers can read configuration, dump credentials, modify firmware, enable remote access, or recruit the device into a botnet.

The Exploit Prediction Scoring System (EPSS) rates this issue at the 89.64th percentile, indicating substantially higher exploitation probability than the average disclosed CVE.

Root Cause

The root cause is missing input validation and unsafe command construction in the setUpgradeUboot function. The firmware passes user-controlled HTTP parameters directly into a system() or equivalent shell invocation. No allow-list filtering, escaping, or argv-style execution is applied to the FileName value.

Attack Vector

The attack is performed over the network against the router's management interface. A crafted HTTP request that invokes setUpgradeUboot with a malicious FileName value triggers command execution. The published proof-of-concept demonstrates remote code execution without credentials. Refer to the GitHub PoC Repository and VulDB #357038 for request structure and parameter details.

Detection Methods for CVE-2026-6158

Indicators of Compromise

  • Unexpected outbound connections from the router to attacker-controlled hosts, especially TFTP, HTTP, or reverse-shell ports
  • Modified /etc/, /tmp/, or NVRAM configuration entries containing injected scripts or new iptables rules
  • Web request logs containing shell metacharacters such as ;, |, `, or $( in the FileName parameter of setUpgradeUboot
  • Unauthorized firmware or U-Boot environment changes appearing after inbound HTTP POSTs to the upgrade endpoint

Detection Strategies

  • Inspect HTTP traffic destined to the router admin interface for requests targeting setUpgradeUboot with non-filename characters in FileName
  • Deploy network IDS signatures that flag command-injection metacharacters in URI parameters of TOTOLINK CGI endpoints
  • Monitor DNS and NetFlow telemetry for routers initiating outbound connections, which is atypical baseline behavior

Monitoring Recommendations

  • Centralize router syslog and web management logs into a SIEM for correlation and retention
  • Alert on configuration drift, new processes, or firmware version changes on edge devices
  • Track exposure of TOTOLINK management interfaces to the WAN using external attack-surface scans

How to Mitigate CVE-2026-6158

Immediate Actions Required

  • Disable remote (WAN-side) management on the TOTOLINK N300RH and restrict the admin interface to trusted LAN segments only
  • Place affected devices behind a firewall and block inbound access to the router HTTP/HTTPS administration ports
  • Audit logs for prior requests to setUpgradeUboot containing suspicious FileName values and reset credentials if compromise is suspected
  • Replace end-of-support hardware where the vendor does not provide a fixed firmware build

Patch Information

No vendor advisory or fixed firmware version is referenced in the NVD record at the time of publication. Consult the TOTOLINK Official Website for updated firmware availability and the VulDB #357038 CTI entry for tracking remediation status.

Workarounds

  • Disable the firmware upgrade web functionality where the device configuration permits it
  • Segment IoT and SOHO routers onto isolated VLANs with egress filtering to limit post-exploitation impact
  • Enforce strong, unique admin credentials and rotate them after any suspected interaction with the upgrade endpoint
  • Consider replacing the device with a supported model if no patch is forthcoming
bash
# Example: block inbound access to router management on an upstream firewall
iptables -A FORWARD -p tcp -d <router_ip> --dport 80  -j DROP
iptables -A FORWARD -p tcp -d <router_ip> --dport 443 -j DROP
iptables -A FORWARD -p tcp -d <router_ip> --dport 8080 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechTotolink

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability4.86%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/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
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-77
  • Technical References
  • GitHub PoC Repository

  • VulDB Submission #796426

  • VulDB #357038

  • VulDB #357038 CTI

  • TOTOLINK Official Website
  • Related CVEs
  • CVE-2026-7633: Totolink N300RH RCE Vulnerability

  • CVE-2026-7823: Totolink A8000RU RCE Vulnerability

  • CVE-2026-7721: Totolink WA300 RCE Vulnerability

  • CVE-2026-7718: Totolink WA300 RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English