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

CVE-2024-38346: Apache CloudStack RCE Vulnerability

CVE-2024-38346 is a remote code execution vulnerability in Apache CloudStack's unauthenticated cluster service that enables arbitrary command execution on hypervisors and management servers. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: January 22, 2026

CVE-2024-38346 Overview

CVE-2024-38346 is a critical command injection vulnerability in Apache CloudStack that allows unauthenticated remote code execution. The CloudStack cluster service runs on an unauthenticated port (default 9090) that can be exploited to execute arbitrary commands on targeted hypervisors and CloudStack management server hosts. Several commands exposed through this service were found to have command injection vulnerabilities that enable arbitrary code execution via agents on the hosts, which may run as a privileged user.

An attacker who can reach the cluster service on the unauthenticated port can exploit this vulnerability to perform remote code execution on CloudStack managed hosts, resulting in complete compromise of the confidentiality, integrity, and availability of CloudStack managed infrastructure.

Critical Impact

Complete compromise of CloudStack managed infrastructure through unauthenticated remote code execution, affecting all managed hypervisors and management server hosts.

Affected Products

  • Apache CloudStack versions prior to 4.18.2.1
  • Apache CloudStack versions prior to 4.19.0.2

Discovery Timeline

  • July 5, 2024 - CVE-2024-38346 published to NVD
  • February 13, 2025 - Last updated in NVD database

Technical Details for CVE-2024-38346

Vulnerability Analysis

This vulnerability stems from inadequate access controls on the CloudStack cluster service combined with command injection flaws in the service's command handling. The cluster service, which facilitates communication between CloudStack management servers and hypervisor hosts, listens on port 9090 by default without requiring authentication.

The service exposes several commands that can be invoked by any network-accessible client. Critical command injection vulnerabilities exist within these exposed functions, allowing attackers to inject and execute arbitrary operating system commands. Because the agent processes on managed hosts often run with elevated privileges (such as root), successful exploitation grants the attacker privileged access to the underlying systems.

The attack surface is particularly dangerous in environments where the cluster service port is exposed to untrusted networks or the broader internet, as no credentials are required to interact with the vulnerable service.

Root Cause

The root cause is twofold: first, the cluster service (port 9090) lacks authentication mechanisms, allowing any network-accessible client to send commands. Second, improper input validation and sanitization in the command processing logic creates command injection vulnerabilities (CWE-94: Improper Control of Generation of Code). User-controllable input is passed to system commands without adequate sanitization, enabling shell metacharacter injection.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker with network access to port 9090 on a CloudStack management server can:

  1. Connect directly to the unauthenticated cluster service
  2. Send crafted requests containing malicious command injection payloads
  3. Achieve arbitrary command execution on the management server or connected hypervisor hosts
  4. Escalate access to compromise the entire CloudStack managed infrastructure

The vulnerability allows complete remote code execution without any authentication, making it trivially exploitable once the cluster service port is reachable. For detailed technical information about the vulnerability mechanism, refer to the Apache CloudStack Security Advisory and the Openwall OSS Security Discussion.

Detection Methods for CVE-2024-38346

Indicators of Compromise

  • Unexpected connections to port 9090 from external or untrusted IP addresses
  • Unusual process spawning or command execution on CloudStack management servers or hypervisor hosts
  • Suspicious shell commands or script executions initiated by the CloudStack agent process
  • Log entries showing malformed or unusual requests to the cluster service

Detection Strategies

  • Monitor network traffic to port 9090 for connections from unauthorized sources
  • Implement IDS/IPS rules to detect command injection patterns in cluster service traffic
  • Enable and review CloudStack management server logs for anomalous cluster service requests
  • Deploy endpoint detection to alert on unexpected child processes spawned by CloudStack services

Monitoring Recommendations

  • Establish baseline network behavior and alert on deviations involving port 9090 traffic
  • Configure SIEM rules to correlate cluster service access with subsequent privileged command execution
  • Regularly audit firewall rules to ensure port 9090 is restricted to trusted management server peers only
  • Implement file integrity monitoring on CloudStack management server and hypervisor hosts

How to Mitigate CVE-2024-38346

Immediate Actions Required

  • Restrict network access to port 9090 using firewall rules to allow only trusted CloudStack management server peers
  • Audit network configurations to ensure the cluster service is not exposed to untrusted networks or the internet
  • Upgrade Apache CloudStack to version 4.18.2.1, 4.19.0.2, or later immediately
  • Review system logs for any signs of prior exploitation attempts

Patch Information

Apache CloudStack has released security patches addressing this vulnerability. Users should upgrade to version 4.18.2.1 or 4.19.0.2 or later. Patch details and upgrade instructions are available in the Apache CloudStack Security Advisory and the ShapeBlue Security Advisory.

Workarounds

  • Implement firewall rules to restrict port 9090 access exclusively to peer CloudStack management server hosts
  • Deploy network segmentation to isolate CloudStack management infrastructure from untrusted networks
  • Use host-based firewalls (iptables/firewalld) as an additional layer of protection on each management server
  • Consider deploying a VPN or private network for inter-management-server communication if upgrading is delayed
bash
# Example iptables rules to restrict cluster service access
# Allow only specific peer management server IPs
iptables -A INPUT -p tcp --dport 9090 -s <PEER_MGMT_SERVER_IP_1> -j ACCEPT
iptables -A INPUT -p tcp --dport 9090 -s <PEER_MGMT_SERVER_IP_2> -j ACCEPT
# Drop all other traffic to port 9090
iptables -A INPUT -p tcp --dport 9090 -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/TechApache Cloudstack

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability5.03%

  • 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-94
  • Technical References
  • Openwall OSS Security Discussion

  • Apache CloudStack Security Advisory

  • Apache Mailing List Thread

  • ShapeBlue Security Advisory for CloudStack
  • Related CVEs
  • CVE-2024-39864: Apache CloudStack RCE Vulnerability

  • CVE-2025-47713: Apache CloudStack Privilege Escalation

  • CVE-2024-29006: Apache CloudStack Auth Bypass Vulnerability

  • CVE-2024-41107: Apache CloudStack Auth Bypass 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