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-2024-50387

CVE-2024-50387: QNAP SMB Service SQL Injection Vulnerability

CVE-2024-50387 is a SQL injection vulnerability in QNAP SMB Service that allows remote attackers to inject malicious code. This article covers technical details, affected versions, security impact, and mitigation.

Updated: January 22, 2026

CVE-2024-50387 Overview

A SQL injection vulnerability has been reported to affect several QNAP operating system versions. If exploited, the vulnerability could allow remote attackers to inject malicious code into affected QNAP SMB Service deployments. This critical vulnerability enables unauthenticated attackers to manipulate database queries through specially crafted input, potentially leading to data exfiltration, data modification, or complete system compromise.

Critical Impact

This SQL injection vulnerability allows remote attackers to inject malicious code without authentication, potentially compromising data confidentiality, integrity, and availability across affected QNAP NAS devices.

Affected Products

  • QNAP SMB Service versions prior to 4.15.002
  • QNAP SMB Service versions prior to h4.15.002
  • QNAP SMB Service 4.15.001
  • QNAP SMB Service h4.15.001

Discovery Timeline

  • December 6, 2024 - CVE-2024-50387 published to NVD
  • December 8, 2025 - Last updated in NVD database

Technical Details for CVE-2024-50387

Vulnerability Analysis

This vulnerability is classified as CWE-89 (Improper Neutralization of Special Elements used in an SQL Command), commonly known as SQL Injection. The flaw exists in QNAP's SMB Service component, which handles file sharing functionality on QNAP NAS devices. The vulnerability can be exploited remotely over the network without requiring authentication or user interaction.

The exploitation of this vulnerability could result in unauthorized access to sensitive data stored on the NAS, modification or deletion of database records, execution of administrative operations on the database, and potential lateral movement to other systems connected to the compromised NAS. Given that QNAP NAS devices typically store critical business and personal data, successful exploitation poses significant risks to data confidentiality and integrity.

Root Cause

The root cause of CVE-2024-50387 lies in insufficient input validation and sanitization within the SMB Service component. User-supplied input is incorporated into SQL queries without proper escaping or parameterization, allowing attackers to manipulate the query structure. This failure to properly neutralize special characters used in SQL syntax enables malicious actors to inject arbitrary SQL commands that execute with the privileges of the database service.

Attack Vector

The attack vector for this vulnerability is network-based, requiring no authentication or user interaction. An attacker can exploit this vulnerability by sending specially crafted requests to the SMB Service. The malicious payload would contain SQL meta-characters and commands that, when processed by the vulnerable service, are interpreted as part of the SQL query rather than as data.

The exploitation process typically involves identifying injection points in the SMB Service interface, crafting SQL payloads that manipulate query logic, and leveraging the injected commands to extract data, modify records, or potentially execute system commands depending on database configuration and privileges.

Detection Methods for CVE-2024-50387

Indicators of Compromise

  • Unusual database queries containing SQL keywords in unexpected fields (UNION, SELECT, INSERT, DROP, etc.)
  • Anomalous network traffic patterns to QNAP NAS devices on SMB ports
  • Unexpected database errors or timeouts in SMB Service logs
  • Evidence of data exfiltration or unauthorized data access on QNAP devices

Detection Strategies

  • Monitor SMB Service logs for suspicious query patterns or SQL syntax in user-controllable fields
  • Implement network intrusion detection rules to identify SQL injection attack signatures targeting QNAP devices
  • Deploy web application firewall (WAF) rules to filter common SQL injection payloads
  • Audit database access logs for unauthorized queries or abnormal query volumes

Monitoring Recommendations

  • Enable verbose logging on QNAP NAS devices to capture detailed SMB Service activity
  • Configure SIEM alerts for SQL injection indicator patterns targeting NAS infrastructure
  • Monitor for unexpected outbound connections from QNAP devices that may indicate data exfiltration
  • Regularly review database query logs for anomalous patterns

How to Mitigate CVE-2024-50387

Immediate Actions Required

  • Update QNAP SMB Service to version 4.15.002 or later immediately
  • For h-series versions, update to SMB Service h4.15.002 or later
  • Restrict network access to QNAP NAS devices from untrusted networks
  • Review audit logs for any signs of prior exploitation

Patch Information

QNAP has released security patches addressing this vulnerability. The fixed versions are:

  • SMB Service 4.15.002 and later
  • SMB Service h4.15.002 and later

Administrators should apply these updates immediately through the QNAP App Center or by downloading the latest firmware from QNAP's official website. For detailed patch information, refer to the QNAP Security Advisory QSA-24-42.

Workarounds

  • Implement network segmentation to isolate QNAP NAS devices from untrusted network segments
  • Configure firewall rules to restrict SMB Service access to trusted IP addresses only
  • Disable SMB Service if not required for business operations until patching is completed
  • Consider deploying a reverse proxy with SQL injection filtering capabilities in front of QNAP services
bash
# Example: Restrict SMB access via firewall (adjust IP ranges as needed)
# Block external access to SMB ports on QNAP device
iptables -A INPUT -p tcp --dport 445 -s ! 192.168.1.0/24 -j DROP
iptables -A INPUT -p tcp --dport 139 -s ! 192.168.1.0/24 -j DROP

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechQnap Smb Service

  • SeverityCRITICAL

  • CVSS Score10.0

  • EPSS Probability22.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Vendor Resources
  • QNAP Security Advisory QSA-24-42
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal Vulnerability
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