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-2026-31255

CVE-2026-31255: Tenda AC18 Firmware RCE Vulnerability

CVE-2026-31255 is a command injection flaw in Tenda AC18 Firmware that enables remote code execution through the SetSambaCfg interface. This article covers the technical details, affected versions, and mitigation strategies.

Published: April 30, 2026

CVE-2026-31255 Overview

A command injection vulnerability exists in Tenda AC18 V15.03.05.05_multi firmware. The vulnerability is located in the /goform/SetSambaCfg interface, where improper handling of the guestuser parameter allows attackers to execute arbitrary system commands. This flaw enables unauthenticated remote attackers to gain complete control over the affected router device.

Critical Impact

This command injection vulnerability allows unauthenticated attackers to execute arbitrary system commands on vulnerable Tenda AC18 routers via network access, potentially leading to complete device compromise, network pivoting, and persistent backdoor installation.

Affected Products

  • Tenda AC18 Firmware version 15.03.05.05_multi
  • Tenda AC18 hardware devices running the vulnerable firmware
  • All Tenda AC18 devices with the /goform/SetSambaCfg interface exposed

Discovery Timeline

  • 2026-04-27 - CVE-2026-31255 published to NVD
  • 2026-04-28 - Last updated in NVD database

Technical Details for CVE-2026-31255

Vulnerability Analysis

This vulnerability stems from improper input validation in the Samba configuration interface of the Tenda AC18 router. The /goform/SetSambaCfg endpoint processes the guestuser parameter without adequate sanitization, allowing command injection through specially crafted HTTP requests. The affected firmware constructs system commands using user-supplied input, which when not properly escaped or validated, permits attackers to inject arbitrary shell commands that execute with the privileges of the web service process—typically root on embedded devices.

The vulnerability is classified under CWE-77 (Command Injection), indicating that user-controlled input is incorporated into commands executed by the system without proper neutralization of special characters. Successful exploitation requires no authentication, making this vulnerability particularly dangerous for devices exposed to the network.

Root Cause

The root cause is the failure to properly sanitize the guestuser parameter before incorporating it into system commands within the /goform/SetSambaCfg handler. The firmware lacks input validation routines to filter or escape shell metacharacters such as semicolons (;), pipes (|), backticks (`), and other command separators. This allows attackers to break out of the intended command context and execute arbitrary commands.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by sending a malicious HTTP POST request to the /goform/SetSambaCfg endpoint with a crafted guestuser parameter containing shell metacharacters followed by malicious commands. The injected commands execute in the context of the web server process, which typically runs with elevated privileges on embedded router devices.

Common attack scenarios include:

  • Injecting commands to establish a reverse shell connection
  • Modifying DNS settings to redirect traffic
  • Installing persistent malware or backdoors
  • Pivoting to attack other devices on the network
  • Exfiltrating configuration data including wireless credentials

For technical details on the exploitation mechanism, refer to the GitHub CVE References for Tenda AC18.

Detection Methods for CVE-2026-31255

Indicators of Compromise

  • Unexpected outbound connections from the router to unknown IP addresses
  • Unusual processes running on the device or abnormal CPU/memory usage
  • Modified configuration files or unauthorized changes to Samba settings
  • HTTP POST requests to /goform/SetSambaCfg containing shell metacharacters in the guestuser parameter
  • Evidence of command execution artifacts in router logs or file system

Detection Strategies

  • Implement network monitoring to detect HTTP POST requests to /goform/SetSambaCfg containing suspicious characters such as ;, |, &&, `, or $()
  • Deploy intrusion detection signatures targeting command injection patterns in router management interfaces
  • Monitor for unusual network traffic patterns originating from router devices, particularly reverse shell connections
  • Implement web application firewall rules to block requests with shell metacharacters in form parameters

Monitoring Recommendations

  • Enable and regularly review router access logs for unauthorized configuration change attempts
  • Monitor network traffic for connections to known malicious infrastructure
  • Implement alerting for any firmware modification attempts or unusual system calls on the device
  • Periodically verify router configuration integrity against known-good baselines

How to Mitigate CVE-2026-31255

Immediate Actions Required

  • Restrict network access to the router management interface to trusted IP addresses only
  • Disable remote management features if not required
  • Place the router behind a firewall and block external access to the web management interface
  • Consider network segmentation to isolate affected devices until patches are available
  • Monitor the device for signs of compromise and be prepared to factory reset if necessary

Patch Information

At the time of publication, no vendor patch information has been provided by Tenda for this vulnerability. Organizations should monitor official Tenda channels for firmware updates that address CVE-2026-31255. For additional technical details, consult the GitHub CVE References for Tenda AC18.

Workarounds

  • Disable the Samba/file sharing functionality on the router if not required for operations
  • Configure firewall rules to block access to the /goform/SetSambaCfg endpoint from untrusted networks
  • Limit management interface access to a dedicated management VLAN with strict access controls
  • Consider replacing affected devices with alternative router hardware from vendors with better security track records
bash
# Example: Block access to vulnerable endpoint using iptables on upstream firewall
iptables -A FORWARD -d <router_ip> -p tcp --dport 80 -m string --string "/goform/SetSambaCfg" --algo bm -j DROP
iptables -A FORWARD -d <router_ip> -p tcp --dport 443 -m string --string "/goform/SetSambaCfg" --algo bm -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/TechTenda Ac18

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.27%

  • 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-77
  • Technical References
  • GitHub CVE References for Tenda AC18
  • Related CVEs
  • CVE-2024-2854: Tenda AC18 Firmware 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