A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2024-21697

CVE-2024-21697: Atlassian Sourcetree RCE Vulnerability

CVE-2024-21697 is a remote code execution vulnerability in Atlassian Sourcetree with a CVSS score of 8.8. Attackers can execute arbitrary code with high impact. This article covers technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2024-21697 Overview

CVE-2024-21697 is a Remote Code Execution (RCE) vulnerability affecting Atlassian Sourcetree, a popular Git client used by developers on macOS and Windows platforms. This vulnerability allows an unauthenticated attacker to execute arbitrary code on affected systems, potentially leading to complete system compromise.

The vulnerability requires user interaction to exploit, meaning an attacker must convince a user to perform a specific action, such as opening a malicious repository or interacting with crafted content. Despite this requirement, the potential impact is severe, with high confidentiality, integrity, and availability consequences for affected systems.

Critical Impact

Unauthenticated attackers can achieve arbitrary code execution on systems running vulnerable versions of Sourcetree, potentially compromising developer workstations and any connected source code repositories.

Affected Products

  • Sourcetree for Mac version 4.2.8
  • Sourcetree for Windows version 3.4.19
  • All prior versions in the affected version branches

Discovery Timeline

  • 2024-11-19 - CVE-2024-21697 published to NVD
  • 2025-02-11 - Last updated in NVD database

Technical Details for CVE-2024-21697

Vulnerability Analysis

This Remote Code Execution vulnerability in Atlassian Sourcetree enables unauthenticated attackers to execute arbitrary code on victim systems. The attack is network-based with low complexity, though it requires user interaction to successfully exploit. The vulnerability was discovered through Atlassian's Penetration Testing program, indicating it was identified through security research rather than active exploitation in the wild.

When successfully exploited, this vulnerability can result in complete compromise of the affected system. Attackers could potentially gain access to source code repositories, steal credentials stored in the application, pivot to other systems on the network, or install persistent backdoors on developer workstations.

Root Cause

The specific technical root cause has not been publicly disclosed by Atlassian. However, RCE vulnerabilities in Git clients like Sourcetree often stem from improper handling of repository content, unsafe execution of Git hooks, or insufficient validation of user-controlled input when processing repository metadata. The vulnerability may involve how Sourcetree processes certain Git operations or handles external data.

Attack Vector

The vulnerability is exploitable over the network without requiring authentication. An attacker could potentially exploit this vulnerability through several vectors:

  • Crafting a malicious Git repository that triggers code execution when cloned or opened
  • Exploiting how Sourcetree handles certain Git protocol operations
  • Leveraging malicious content within repository metadata or configuration files

Since user interaction is required, social engineering tactics would likely be employed to convince targets to interact with malicious repositories or links.

The exploitation mechanism involves network-based attack vectors targeting Sourcetree's handling of repository operations. Given the user interaction requirement, attackers would typically need to convince a victim to clone or open a specially crafted repository. For detailed technical information, refer to the Atlassian Security Advisory.

Detection Methods for CVE-2024-21697

Indicators of Compromise

  • Unexpected child processes spawned by Sourcetree application (SourceTree.exe on Windows or Sourcetree.app on macOS)
  • Unusual network connections originating from Sourcetree processes to unknown external hosts
  • Suspicious Git repository clone operations from untrusted sources
  • Anomalous file system activity in user profile directories following Sourcetree operations

Detection Strategies

  • Monitor process creation events for child processes spawned by Sourcetree that do not match expected Git-related binaries
  • Implement application whitelisting to detect unauthorized executables launched in the context of Sourcetree
  • Review Git clone and fetch operations for repositories from untrusted or unknown sources
  • Deploy endpoint detection solutions capable of identifying RCE exploitation patterns

Monitoring Recommendations

  • Enable enhanced logging for Sourcetree application activity and Git operations
  • Configure SIEM alerts for process execution anomalies associated with development tools
  • Monitor network traffic from developer workstations for connections to suspicious domains
  • Implement file integrity monitoring on directories commonly targeted during code execution attacks

How to Mitigate CVE-2024-21697

Immediate Actions Required

  • Upgrade Sourcetree for Mac to version 4.2.9 or later immediately
  • Upgrade Sourcetree for Windows to version 3.4.20 or later immediately
  • Audit recent repository clone operations from untrusted sources
  • Review developer workstations for signs of compromise if vulnerable versions were in use

Patch Information

Atlassian has released patched versions that address this vulnerability:

PlatformVulnerable VersionFixed Version
macOS4.2.84.2.9 or later
Windows3.4.193.4.20 or later

The latest versions can be downloaded from the Sourcetree Download Archives. For additional details, refer to the Atlassian Security Advisory and the JIRA Issue SRCTREE-8168.

Workarounds

  • Restrict Sourcetree usage to cloning repositories only from trusted and verified sources until patching is complete
  • Implement network segmentation to limit the blast radius of potential exploitation on developer workstations
  • Consider temporarily using alternative Git clients while awaiting patch deployment
  • Enable application-level firewall rules to restrict Sourcetree network communications to known Git hosting services
bash
# Verify Sourcetree version on macOS
defaults read /Applications/Sourcetree.app/Contents/Info.plist CFBundleShortVersionString

# Verify Sourcetree version on Windows (PowerShell)
(Get-Item "C:\Program Files (x86)\Atlassian\Sourcetree\SourceTree.exe").VersionInfo.ProductVersion

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechAtlassian Sourcetree

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability2.21%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo
  • Vendor Resources
  • Atlassian Confluence Page

  • Atlassian JIRA Issue SRCTREE-8168
  • Latest CVEs
  • CVE-2026-9813: FlowIntel SSRF Vulnerability

  • CVE-2026-4377: D-Link DWR-X1820 Auth Bypass Vulnerability

  • CVE-2026-47074: ex_aws_sns Auth Bypass Vulnerability

  • CVE-2026-46241: Linux Kernel Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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