Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2022-24989

CVE-2022-24989: TerraMaster NAS RCE Vulnerability

CVE-2022-24989 is a remote code execution vulnerability in TerraMaster Operating System that allows attackers to execute arbitrary code as root. This post covers technical details, affected versions, impact, and mitigation.

Published: February 11, 2026

CVE-2022-24989 Overview

CVE-2022-24989 is a critical remote code execution vulnerability affecting TerraMaster NAS devices running TerraMaster Operating System (TOS) through version 4.2.30. The vulnerability allows unauthenticated remote attackers from the WAN to execute arbitrary code as root by exploiting improper input validation in the raidtype and diskstring parameters of the api.php?mobile/createRaid URI endpoint.

This vulnerability is classified as a Command Injection flaw (CWE-74) that occurs due to the use of popen() without proper sanitization, enabling attackers to inject shell metacharacters and achieve PHP Object Instantiation leading to complete system compromise.

Critical Impact

Unauthenticated remote attackers can achieve root-level code execution on vulnerable TerraMaster NAS devices, potentially leading to complete device takeover, data theft, ransomware deployment, or use of the compromised device as a pivot point for further network attacks.

Affected Products

  • TerraMaster Operating System through version 4.2.30
  • TerraMaster F-Series NAS (F2-210, F2-221, F2-223, F2-422, F2-423, F4-421, F4-422, F4-423, F5-221, F5-422)
  • TerraMaster T-Series NAS (T6-423, T9-423, T9-450, T12-423, T12-450)
  • TerraMaster U-Series NAS (U4-111, U4-211, U4-423, U8-111, U8-322-9100, U8-423, U8-522-9400, U8-722-2224, U12-322-9100, U12-423, U12-722-2224, U16-322-9100, U16-722-2224, U24-722-2224)

Discovery Timeline

  • 2023-08-20 - CVE-2022-24989 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-24989

Vulnerability Analysis

The vulnerability exists in the TerraMaster Operating System's web API, specifically in the RAID creation functionality exposed through api.php. The mobile/createRaid endpoint accepts user-controlled parameters (raidtype and diskstring) that are passed to system commands via PHP's popen() function without adequate input sanitization.

This design flaw creates a classic command injection scenario where an attacker can embed shell metacharacters (such as semicolons, backticks, or pipe characters) within the raidtype parameter. When the server processes the malicious request, the injected commands execute with root privileges, as the NAS web service typically runs with elevated permissions.

The vulnerability is particularly dangerous because it can be exploited remotely over the WAN without authentication. Additionally, researchers have noted that credentials obtained through exploitation of the related CVE-2022-24990 vulnerability can be leveraged in conjunction with this flaw, creating a powerful attack chain.

Root Cause

The root cause of CVE-2022-24989 is the use of PHP's popen() function to execute system commands with user-supplied input that lacks proper sanitization. The raidtype parameter is directly concatenated into a shell command string without escaping special characters or validating against an allowlist of expected values.

This represents a fundamental secure coding failure where untrusted user input is passed to a command execution function. The lack of input validation, combined with the privileged execution context, transforms what should be a simple RAID configuration endpoint into a remote code execution vector.

Attack Vector

The attack is network-based and can be executed remotely over the WAN without requiring any authentication or user interaction. An attacker identifies a vulnerable TerraMaster NAS device exposed to the internet and crafts a malicious HTTP request to the api.php?mobile/createRaid endpoint.

By injecting shell metacharacters into the raidtype parameter, the attacker can append arbitrary commands that execute with root privileges when the server processes the request. This allows for immediate command execution, enabling activities such as downloading and executing malware, establishing reverse shells, exfiltrating sensitive data, or deploying ransomware. For detailed technical analysis, see the Octagon Blog CVE-2022-24990 Analysis.

Detection Methods for CVE-2022-24989

Indicators of Compromise

  • Unexpected HTTP POST requests to /api.php?mobile/createRaid containing shell metacharacters (;, |, `, $()) in the raidtype or diskstring parameters
  • Unusual processes spawned by the web server process, particularly reverse shells or command interpreters (e.g., /bin/sh, /bin/bash, nc, wget, curl)
  • Unexpected outbound network connections from the NAS device to external IP addresses, especially on non-standard ports
  • New or modified files in web-accessible directories or system locations such as /tmp, /var/tmp, or cron directories

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block requests containing shell metacharacters in the mobile/createRaid API parameters
  • Monitor web server access logs for requests to api.php?mobile/createRaid from external IP addresses
  • Deploy network intrusion detection signatures to identify exploitation attempts targeting this vulnerability
  • Use endpoint detection and response (EDR) solutions to identify suspicious process chains where the web server spawns shell processes

Monitoring Recommendations

  • Enable comprehensive logging on TerraMaster NAS devices and forward logs to a centralized SIEM for analysis
  • Configure alerts for any HTTP requests to the mobile/createRaid endpoint originating from external networks
  • Monitor for unusual process execution patterns on the NAS device, particularly shell commands executed as root by the web server
  • Implement network segmentation and monitor traffic flows between NAS devices and external networks

How to Mitigate CVE-2022-24989

Immediate Actions Required

  • Update TerraMaster Operating System to a version newer than 4.2.30 that includes patches for this vulnerability
  • If immediate patching is not possible, disable WAN access to the NAS management interface immediately
  • Place vulnerable NAS devices behind a firewall or VPN and restrict access to trusted networks only
  • Conduct a forensic review of affected systems to identify any indicators of prior exploitation

Patch Information

TerraMaster users should update their devices to the latest firmware version that addresses this vulnerability. Check the TerraMaster Forum Discussion for official announcements regarding security updates. Ensure automatic updates are enabled to receive future security patches promptly.

Workarounds

  • Disable remote WAN access to the TerraMaster NAS management interface until the device can be patched
  • Implement strict firewall rules to block external access to TCP ports used by the NAS web interface (typically ports 80, 443, and 8181)
  • Use a VPN to access the NAS remotely instead of exposing the web interface directly to the internet
  • Consider network segmentation to isolate NAS devices from critical network resources
bash
# Example: Block external access to TerraMaster NAS ports using iptables
# Run these commands on your network firewall/router

# Block HTTP access from WAN
iptables -A INPUT -p tcp --dport 80 -i eth0 -j DROP

# Block HTTPS access from WAN  
iptables -A INPUT -p tcp --dport 443 -i eth0 -j DROP

# Block TerraMaster default management port from WAN
iptables -A INPUT -p tcp --dport 8181 -i eth0 -j DROP

# Allow access only from internal network (adjust 192.168.1.0/24 to your network)
iptables -A INPUT -p tcp --dport 80 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 8181 -s 192.168.1.0/24 -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/TechTerra Master

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability82.11%

  • 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-74
  • Technical References
  • AttackerKB CVE-2022-24990 Analysis

  • TerraMaster Forum Discussion

  • GitHub Repository for CVE-2022-24990

  • Octagon Blog CVE-2022-24990 Analysis

  • Packet Storm Security File #172904
  • Related CVEs
  • CVE-2020-28188: TerraMaster TOS RCE Vulnerability

  • CVE-2022-24990: TerraMaster TOS Information Disclosure
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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