The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-2024-0299

CVE-2024-0299: Totolink N200RE Firmware RCE Vulnerability

CVE-2024-0299 is a critical remote code execution vulnerability in Totolink N200RE Firmware affecting the setTracerouteCfg function. This article covers the technical details, affected versions, impact, and mitigation.

Published: April 15, 2026

CVE-2024-0299 Overview

A critical OS command injection vulnerability has been identified in the Totolink N200RE router firmware version 9.3.5u.6139_B20201216. The vulnerability exists in the setTracerouteCfg function within the /cgi-bin/cstecgi.cgi file, where improper handling of the command argument allows remote attackers to inject and execute arbitrary operating system commands. This vulnerability can be exploited remotely without authentication, potentially leading to complete device compromise.

Critical Impact

Remote attackers can achieve full control of the affected Totolink N200RE router through unauthenticated OS command injection, potentially enabling network infiltration, traffic interception, and lateral movement.

Affected Products

  • Totolink N200RE Firmware version 9.3.5u.6139_B20201216
  • Totolink N200RE Hardware

Discovery Timeline

  • 2024-01-08 - CVE-2024-0299 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-0299

Vulnerability Analysis

This command injection vulnerability affects the traceroute configuration functionality of Totolink N200RE routers. The setTracerouteCfg function within the CGI handler (/cgi-bin/cstecgi.cgi) fails to properly sanitize user-supplied input in the command parameter before passing it to the underlying operating system for execution. This lack of input validation allows attackers to append or inject arbitrary shell commands that are executed with the privileges of the web server process, typically root on embedded devices.

The exploit has been publicly disclosed, significantly increasing the risk of attacks against vulnerable devices. The vendor was contacted about this vulnerability but did not respond, meaning no official patch is available.

Root Cause

The root cause of CVE-2024-0299 is a classic CWE-78 (Improper Neutralization of Special Elements used in an OS Command) vulnerability. The setTracerouteCfg function directly incorporates user input from the command parameter into system calls without proper sanitization or escaping of shell metacharacters. This allows attackers to break out of the intended command context and execute arbitrary commands.

Attack Vector

The attack can be launched remotely over the network against the router's web management interface. An attacker sends a crafted HTTP request to the /cgi-bin/cstecgi.cgi endpoint, targeting the setTracerouteCfg function with a malicious command parameter containing shell metacharacters and injected commands. Since no authentication appears to be required for exploitation, any attacker with network access to the management interface can exploit this vulnerability.

The vulnerability manifests in the traceroute configuration handler where user-supplied input is passed to OS command execution functions without adequate sanitization. Technical details and proof-of-concept information can be found in the GitHub PoC Documentation and VulDB advisory.

Detection Methods for CVE-2024-0299

Indicators of Compromise

  • Unexpected HTTP requests to /cgi-bin/cstecgi.cgi containing the setTracerouteCfg function call
  • Shell metacharacters (;, |, &, $(), backticks) present in web server access logs targeting CGI endpoints
  • Unusual outbound network connections from the router to unknown IP addresses
  • Unexpected processes running on the router device

Detection Strategies

  • Monitor web server access logs for requests to /cgi-bin/cstecgi.cgi with suspicious command parameter values
  • Deploy network intrusion detection rules to identify command injection patterns targeting Totolink devices
  • Implement egress filtering to detect command-and-control communications from compromised routers
  • Perform regular firmware integrity checks to detect unauthorized modifications

Monitoring Recommendations

  • Enable verbose logging on the router if available and forward logs to a centralized SIEM
  • Monitor for unexpected configuration changes or new user accounts on the device
  • Track network traffic anomalies from router management interfaces
  • Review device behavior for signs of cryptocurrency mining or botnet participation

How to Mitigate CVE-2024-0299

Immediate Actions Required

  • Restrict access to the router's web management interface to trusted networks only using firewall rules
  • Disable remote management access from WAN interfaces if enabled
  • Place vulnerable routers behind a VPN or additional firewall that can filter malicious requests
  • Consider replacing affected devices with actively maintained alternatives if no patch becomes available

Patch Information

No official patch is currently available from Totolink. The vendor was contacted about this vulnerability but did not respond. Organizations should implement compensating controls and monitor for any future firmware updates from the vendor.

Workarounds

  • Implement network segmentation to isolate vulnerable routers from critical network segments
  • Use access control lists (ACLs) to limit which IP addresses can access the router management interface
  • Deploy a web application firewall (WAF) in front of the management interface to filter command injection attempts
  • Monitor the device closely for signs of compromise and be prepared to restore from a known-good configuration
bash
# Example: Restrict management access using iptables on upstream firewall
# Block external access to router management interface
iptables -A FORWARD -d 192.168.1.1 -p tcp --dport 80 -i eth0 -j DROP
iptables -A FORWARD -d 192.168.1.1 -p tcp --dport 443 -i eth0 -j DROP

# Allow only specific trusted management IP
iptables -A FORWARD -s 10.0.0.100 -d 192.168.1.1 -p tcp --dport 80 -j ACCEPT

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechTotolink

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability2.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub PoC Documentation

  • VulDB CTI ID #249865

  • VulDB #249865
  • 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