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

CVE-2024-6240: Parallels Desktop Privilege Escalation Flaw

CVE-2024-6240 is a privilege escalation vulnerability in Parallels Desktop that allows attackers to execute malicious code via BASH_ENV manipulation. This article covers technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2024-6240 Overview

CVE-2024-6240 is an improper privilege management vulnerability affecting Parallels Desktop Software versions earlier than 19.3.0. This vulnerability allows an attacker to inject malicious code through a script by manipulating the BASH_ENV environment variable, pointing it to a malicious script that executes during application startup. Successful exploitation enables privilege escalation on the affected macOS system.

Critical Impact

This vulnerability allows complete system compromise through privilege escalation, potentially giving attackers full control over the host macOS system running Parallels Desktop.

Affected Products

  • Parallels Desktop for macOS (versions prior to 19.3.0)
  • All Parallels Desktop installations on macOS using vulnerable versions
  • Systems with Parallels Desktop configured with default startup behavior

Discovery Timeline

  • 2024-06-21 - CVE-2024-6240 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-6240

Vulnerability Analysis

This vulnerability stems from improper privilege management (CWE-269) within Parallels Desktop's handling of environment variables during application startup. The core issue lies in how the application processes the BASH_ENV environment variable without proper validation or sanitization. When Parallels Desktop launches, it executes shell initialization scripts, and if an attacker has set the BASH_ENV variable to point to a malicious script, that script executes with elevated privileges.

The attack can be performed remotely without requiring authentication or user interaction, and the scope is changed, meaning a successful exploit can impact resources beyond the vulnerable component's security scope. This allows attackers to escape the virtualization boundary and affect the host macOS system.

Root Cause

The root cause is improper privilege management in how Parallels Desktop handles environment variables during startup sequences. The application fails to properly sanitize or validate the BASH_ENV environment variable before executing shell scripts, allowing arbitrary script execution. This design flaw enables attackers to inject malicious code into the application's initialization process, bypassing normal security controls.

Attack Vector

The attack exploits Parallels Desktop's startup behavior by leveraging the BASH_ENV environment variable. An attacker can create a malicious script containing arbitrary commands and configure the BASH_ENV variable to reference this script's path. When Parallels Desktop starts and initializes its shell environment, it sources the script pointed to by BASH_ENV, executing the attacker's code with elevated privileges.

The attack flow involves:

  1. Creating a malicious script containing privilege escalation commands
  2. Setting the BASH_ENV environment variable to the malicious script's path
  3. Triggering Parallels Desktop startup (or waiting for system reboot/application restart)
  4. The malicious script executes during initialization with elevated privileges
  5. Attacker gains escalated access to the host macOS system

For detailed technical information about this vulnerability, see the INCIBE Security Notice.

Detection Methods for CVE-2024-6240

Indicators of Compromise

  • Unexpected values in the BASH_ENV environment variable pointing to non-standard script locations
  • Suspicious scripts in user-writable directories that are referenced by environment variables
  • Unusual process spawning during Parallels Desktop startup
  • Evidence of privilege escalation attempts in system logs

Detection Strategies

  • Monitor for modifications to environment variables, particularly BASH_ENV, in user profiles and system-wide configurations
  • Implement file integrity monitoring on Parallels Desktop installation directories
  • Review startup scripts and environment configurations for unauthorized changes
  • Deploy endpoint detection rules to identify suspicious script execution during application startup

Monitoring Recommendations

  • Enable verbose logging for Parallels Desktop and monitor for anomalous behavior during startup
  • Configure alerts for environment variable modifications in user shell profiles (.bashrc, .bash_profile, .zshrc)
  • Monitor process execution chains originating from Parallels Desktop for unexpected child processes
  • Implement SentinelOne's behavioral AI to detect privilege escalation patterns associated with environment variable manipulation

How to Mitigate CVE-2024-6240

Immediate Actions Required

  • Upgrade Parallels Desktop to version 19.3.0 or later immediately
  • Audit current BASH_ENV environment variable settings across all systems running Parallels Desktop
  • Review and remove any suspicious scripts that may have been placed for exploitation
  • Restrict write access to directories commonly used for environment variable script paths

Patch Information

Parallels has addressed this vulnerability in Parallels Desktop version 19.3.0. Organizations should prioritize updating all Parallels Desktop installations to this version or later. The update patches the improper privilege management issue by implementing proper validation and sanitization of environment variables during application startup.

Workarounds

  • If immediate patching is not possible, restrict user ability to modify environment variables at the system level
  • Implement application whitelisting to prevent unauthorized script execution
  • Consider temporarily disabling Parallels Desktop on critical systems until patching can be completed
  • Use endpoint protection solutions like SentinelOne to monitor and block suspicious privilege escalation attempts
bash
# Verify Parallels Desktop version
/Applications/Parallels\ Desktop.app/Contents/MacOS/prl_client_app --version

# Check for suspicious BASH_ENV settings
echo $BASH_ENV
grep -r "BASH_ENV" ~/.bash* ~/.zsh* /etc/profile /etc/bashrc 2>/dev/null

# Update Parallels Desktop via command line (if Parallels Tools available)
# Or download the latest version from Parallels website

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechParallels Desktop

  • SeverityCRITICAL

  • CVSS Score10.0

  • EPSS Probability0.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-269
  • Technical References
  • INCIBE Security Notice
  • Related CVEs
  • CVE-2024-34331: Parallels Desktop Privilege Escalation
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