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
    • 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-2023-50358

CVE-2023-50358: QNAP QTS OS Command Injection RCE Flaw

CVE-2023-50358 is an OS command injection vulnerability in QNAP QTS that enables remote code execution via network. This article covers the technical details, all affected QTS versions, security impact, and mitigation.

Published: February 4, 2026

CVE-2023-50358 Overview

CVE-2023-50358 is an OS command injection vulnerability affecting multiple QNAP operating system versions including QTS, QuTS hero, and QuTScloud. If successfully exploited, this vulnerability allows attackers to execute arbitrary commands via a network from an adjacent network position. The vulnerability stems from improper input validation in the QNAP firmware, enabling command injection attacks that could compromise the integrity and availability of affected NAS devices.

Critical Impact

Successful exploitation could allow attackers on an adjacent network to execute arbitrary operating system commands on vulnerable QNAP NAS devices, potentially leading to data theft, ransomware deployment, or use of the device as a pivot point for further network attacks.

Affected Products

  • QNAP QTS (versions prior to 5.1.5.2645 build 20240116, 4.5.4.2627 build 20231225, 4.3.6.2665 build 20240131, 4.3.4.2675 build 20240131, 4.3.3.2644 build 20240131, and 4.2.6 build 20240131)
  • QNAP QuTS hero (versions prior to h5.1.5.2647 build 20240118 and h4.5.4.2626 build 20231225)
  • QNAP QuTScloud (versions prior to c5.1.5.2651)

Discovery Timeline

  • 2024-02-13 - CVE CVE-2023-50358 published to NVD
  • 2025-12-10 - Last updated in NVD database

Technical Details for CVE-2023-50358

Vulnerability Analysis

This OS command injection vulnerability (CWE-78) in QNAP firmware allows authenticated or unauthenticated users on an adjacent network to execute arbitrary operating system commands. The attack requires adjacency to the target network but does not require privileges or user interaction to exploit. The vulnerability can affect resources beyond the scope of the vulnerable component, potentially impacting the confidentiality, integrity, and availability of the entire NAS system and connected network resources.

According to analysis from Palo Alto Networks Unit 42, this vulnerability has been observed in the wild, making timely patching critical for organizations running affected QNAP devices.

Root Cause

The root cause of CVE-2023-50358 is improper neutralization of special elements used in an OS command (CWE-78). The QNAP firmware fails to properly sanitize user-supplied input before incorporating it into operating system commands, allowing attackers to inject malicious command sequences that are then executed with the privileges of the vulnerable process.

Attack Vector

The attack vector for this vulnerability is adjacent network access, meaning an attacker must have access to the same network segment as the target QNAP device. While this limits the attack surface compared to internet-facing vulnerabilities, many QNAP NAS devices are deployed on internal networks where adjacent access may be achievable through compromised workstations, wireless network access, or physical proximity.

The attack does not require authentication or user interaction, and the complexity is considered high due to specific conditions that must be met for successful exploitation. Once exploited, the scope can change, affecting resources beyond the vulnerable component itself.

Detection Methods for CVE-2023-50358

Indicators of Compromise

  • Unexpected process spawning from QNAP web services or management interfaces
  • Unusual outbound network connections from QNAP devices to unknown external addresses
  • Command execution logs showing suspicious shell commands or encoded payloads
  • Modifications to system files, scheduled tasks, or user accounts on QNAP devices

Detection Strategies

  • Monitor QNAP device logs for unusual web request patterns or malformed HTTP parameters
  • Implement network intrusion detection rules to identify command injection patterns in traffic destined for QNAP devices
  • Deploy endpoint detection capabilities on network segments containing QNAP devices to identify lateral movement attempts
  • Conduct regular vulnerability scans to identify unpatched QNAP devices in your environment

Monitoring Recommendations

  • Enable detailed logging on QNAP devices and forward logs to a centralized SIEM for correlation
  • Monitor for process execution anomalies on QNAP devices, particularly shell spawning from web services
  • Implement network segmentation monitoring to detect unauthorized access attempts to QNAP device network segments
  • Set up alerts for firmware version changes and ensure devices are running patched versions

How to Mitigate CVE-2023-50358

Immediate Actions Required

  • Identify all QNAP QTS, QuTS hero, and QuTScloud devices in your environment and verify their firmware versions
  • Prioritize patching devices that are accessible from less-trusted network segments
  • Implement network segmentation to isolate QNAP NAS devices from general user networks where possible
  • Review access controls and disable unnecessary network services on QNAP devices

Patch Information

QNAP has released patches for all affected operating system versions. Organizations should upgrade to the following versions or later as detailed in the QNAP Security Advisory QSA-23-57:

  • QTS 5.1.5.2645 build 20240116 and later
  • QTS 4.5.4.2627 build 20231225 and later
  • QTS 4.3.6.2665 build 20240131 and later
  • QTS 4.3.4.2675 build 20240131 and later
  • QTS 4.3.3.2644 build 20240131 and later
  • QTS 4.2.6 build 20240131 and later
  • QuTS hero h5.1.5.2647 build 20240118 and later
  • QuTS hero h4.5.4.2626 build 20231225 and later
  • QuTScloud c5.1.5.2651 and later

Workarounds

  • Implement strict network segmentation to prevent adjacent network access to QNAP devices from untrusted hosts
  • Deploy network access controls (NAC) to limit which devices can communicate with QNAP NAS systems
  • Consider disabling remote management interfaces until patches can be applied
  • Use a VPN or jump host for administrative access to QNAP devices rather than direct network exposure
bash
# Example: Check current QTS firmware version via SSH
cat /etc/version
# Verify the build number matches or exceeds the patched versions listed above

# Restrict management interface access (example using QNAP firewall)
# Access Control Panel > Security > Security Level
# Set to "High" to restrict management access

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechQnap Qts

  • SeverityMEDIUM

  • CVSS Score5.8

  • EPSS Probability2.16%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-78
  • Technical References
  • Palo Alto Networks QNAP CVE-2023-50358 Analysis

  • BSI Cybersecurity Warning 2024-213941-1032
  • Vendor Resources
  • QNAP Security Advisory QSA-23-57
  • Related CVEs
  • CVE-2024-14026: QNAP QTS Command Injection RCE Vulnerability

  • CVE-2020-2509: QNAP QTS Command Injection RCE Vulnerability

  • CVE-2024-27130: QNAP QTS RCE Vulnerability

  • CVE-2024-21900: QNAP QTS RCE Vulnerability
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