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-2854

CVE-2024-2854: Tenda AC18 Firmware RCE Vulnerability

CVE-2024-2854 is a critical remote code execution vulnerability in Tenda AC18 Firmware caused by OS command injection in the formSetSambaConf function. This article covers technical details, affected versions, and mitigation.

Updated: May 15, 2026

CVE-2024-2854 Overview

CVE-2024-2854 is an operating system (OS) command injection vulnerability in the Tenda AC18 wireless router running firmware version 15.03.05.05. The flaw resides in the formSetSambaConf function within /goform/setsambacfg, where the usbName argument is passed to a shell context without proper sanitization. Remote attackers can inject arbitrary OS commands through this parameter and execute them with the privileges of the web management process. The issue is tracked as VulDB identifier VDB-257778 and is classified under [CWE-78]. According to the disclosure record, the vendor did not respond to the early notification.

Critical Impact

Unauthenticated remote attackers can execute arbitrary operating system commands on affected Tenda AC18 routers, leading to full device compromise.

Affected Products

  • Tenda AC18 router (hardware)
  • Tenda AC18 firmware version 15.03.05.05
  • Deployments exposing the web management interface (/goform/setsambacfg) to untrusted networks

Discovery Timeline

  • 2024-03-24 - CVE-2024-2854 published to the National Vulnerability Database (NVD)
  • 2024-11-21 - Last updated in the NVD database

Technical Details for CVE-2024-2854

Vulnerability Analysis

The vulnerability is an OS command injection [CWE-78] in the Samba configuration handler of the Tenda AC18 router. The HTTP endpoint /goform/setsambacfg invokes the internal formSetSambaConf function, which processes user-supplied parameters used to configure Samba file sharing for an attached USB device. The usbName parameter is incorporated into a shell command construction without input validation or argument quoting. An attacker submitting crafted shell metacharacters in usbName causes the router to execute attacker-controlled commands in addition to the intended configuration command.

Exploitation requires network access to the router's management interface but no authentication or user interaction, and impacts confidentiality, integrity, and availability. The Exploit Prediction Scoring System (EPSS) places this issue in the 81st percentile, indicating elevated likelihood of exploitation activity relative to the broader CVE population.

Root Cause

The root cause is unsafe concatenation of attacker-controlled input into a shell command. The formSetSambaConf handler builds a command string that embeds the usbName value and passes it to a system shell helper such as system() or popen(). Because the firmware does not filter shell metacharacters (;, |, &, backticks, $()), arbitrary commands can be appended to the legitimate Samba configuration command.

Attack Vector

The attack vector is network-based. An attacker sends a crafted HTTP POST request to /goform/setsambacfg on the router's management interface, supplying a malicious usbName value containing shell metacharacters followed by the desired command. The router parses the request, calls formSetSambaConf, and executes the injected payload. Where the management interface is reachable from the WAN side, exploitation can occur from the public internet. Where it is restricted to the LAN, an attacker on the local network or a victim browser performing cross-site requests can reach the endpoint.

No verified proof-of-concept code is referenced in the enriched data. The vulnerability mechanism is described in the public GitHub Vulnerability Documentation and the VulDB entry #257778.

Detection Methods for CVE-2024-2854

Indicators of Compromise

  • HTTP POST requests to /goform/setsambacfg containing shell metacharacters (;, |, &, `, $() within the usbName parameter.
  • Unexpected outbound connections from the router to attacker-controlled hosts following Samba configuration changes.
  • New or modified processes on the router, persistence entries in startup scripts, or unexplained changes to /etc or NVRAM-backed configuration.

Detection Strategies

  • Inspect HTTP traffic destined to the router management interface and alert on requests to /goform/setsambacfg originating from untrusted segments.
  • Apply network intrusion detection signatures that match shell metacharacters in usbName POST bodies.
  • Correlate router configuration changes with subsequent anomalous DNS or outbound TCP traffic from the device's management VLAN.

Monitoring Recommendations

  • Forward router system logs and HTTP access logs to a central log platform and retain them for incident review.
  • Monitor for management-plane access from non-administrative source addresses, especially WAN-side hits.
  • Baseline normal Samba and USB-sharing configuration activity so that unexpected formSetSambaConf invocations stand out.

How to Mitigate CVE-2024-2854

Immediate Actions Required

  • Disable the Samba/USB file-sharing feature on the Tenda AC18 if it is not required for business operations.
  • Restrict access to the router's web management interface so that it is unreachable from the WAN and limited to a dedicated management network on the LAN.
  • Change administrative credentials and audit configured users on the device after applying network controls.

Patch Information

At the time of NVD publication and last modification (2024-11-21), no vendor advisory or fixed firmware version is listed in the enriched data. The disclosure record states that Tenda was contacted but did not respond. Operators should monitor the Tenda support site for a firmware release that addresses formSetSambaConf input handling and apply it once available.

Workarounds

  • Block external access to TCP ports used by the router's HTTP/HTTPS management interface at the upstream firewall.
  • Place the AC18 behind a segmented management VLAN and require administrators to connect through a jump host or VPN.
  • If the device is end-of-life or no patch becomes available, replace it with a supported router model that receives current security updates.
bash
# Configuration example: restrict access to the Tenda AC18 management interface
# Replace 192.0.2.10 with the administrator workstation address
# and 198.51.100.1 with the router LAN IP.
iptables -I FORWARD -p tcp -d 198.51.100.1 --dport 80  -s 192.0.2.10 -j ACCEPT
iptables -I FORWARD -p tcp -d 198.51.100.1 --dport 443 -s 192.0.2.10 -j ACCEPT
iptables -I FORWARD -p tcp -d 198.51.100.1 --dport 80  -j DROP
iptables -I FORWARD -p tcp -d 198.51.100.1 --dport 443 -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 Probability1.53%

  • 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 Vulnerability Documentation

  • VulDB CTI ID #257778

  • VulDB #257778
  • Related CVEs
  • CVE-2026-31255: 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