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-2020-27955

CVE-2020-27955: Git Large File Storage RCE Vulnerability

CVE-2020-27955 is a remote code execution vulnerability in Git Large File Storage 2.12.0 that allows attackers to execute arbitrary code. This article covers the technical details, affected versions, impact, and mitigation.

Published: March 4, 2026

CVE-2020-27955 Overview

CVE-2020-27955 is a Remote Code Execution (RCE) vulnerability affecting Git Large File Storage (Git LFS) version 2.12.0. This vulnerability allows attackers to execute arbitrary code on systems running the vulnerable version of Git LFS through a maliciously crafted Git repository. The flaw stems from an Uncontrolled Search Path Element issue (CWE-427), where Git LFS improperly handles executable path resolution on Windows systems.

Critical Impact

This vulnerability enables unauthenticated remote attackers to achieve complete system compromise by executing arbitrary code with the privileges of the user running Git LFS operations. Given the widespread use of Git LFS in development environments, exploitation could lead to supply chain attacks and lateral movement within development infrastructure.

Affected Products

  • Git Large File Storage version 2.12.0
  • Git LFS installations on Windows platforms
  • Development environments and CI/CD systems using vulnerable Git LFS versions

Discovery Timeline

  • November 5, 2020 - CVE-2020-27955 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2020-27955

Vulnerability Analysis

This vulnerability is classified as CWE-427 (Uncontrolled Search Path Element), a type of DLL Hijacking or binary planting vulnerability. The root cause lies in how Git LFS resolves and executes external programs on Windows systems. When Git LFS attempts to invoke Git or other helper executables, it relies on the system's PATH environment variable and current working directory for resolution. An attacker can exploit this behavior by placing a malicious executable in a directory that is searched before the legitimate program location.

The attack is particularly dangerous because it can be triggered automatically when a user clones or interacts with a malicious Git repository. The repository can contain files with names matching executables that Git LFS expects to invoke (such as git.exe or git.bat), causing the malicious payload to execute instead of the legitimate program.

Root Cause

The vulnerability exists due to improper search path handling in Git LFS on Windows platforms. When Git LFS needs to execute Git commands or other helper programs, it does not properly sanitize or restrict the search path, allowing executables in the current working directory or other untrusted locations to take precedence over legitimate system binaries. This is a classic example of an uncontrolled search path element vulnerability where the application trusts user-controlled paths during executable resolution.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction beyond standard Git operations. An attacker creates a malicious Git repository containing a specially crafted executable file (such as git.exe, git.bat, or other helper programs) in a location that will be searched by Git LFS during operations like clone, pull, or checkout.

When a victim clones or operates on this malicious repository, Git LFS inadvertently executes the attacker-controlled binary instead of the legitimate Git executable. This results in arbitrary code execution with the privileges of the user performing the Git operation.

The exploitation flow involves:

  1. Attacker creates a repository with a malicious executable matching expected binary names
  2. Victim clones or interacts with the repository using Git LFS
  3. Git LFS searches for executables and finds the malicious binary first
  4. Malicious code executes with the victim's privileges

For detailed technical analysis, refer to the Legal Hackers CVE-2020-27955 Advisory and Packet Storm Security.

Detection Methods for CVE-2020-27955

Indicators of Compromise

  • Presence of unexpected executable files (git.exe, git.bat, git.cmd) within Git repository directories
  • Execution of Git-related processes from unusual directory paths outside standard system locations
  • Anomalous process spawning patterns where Git LFS parent processes launch unexpected child executables
  • Unusual network connections or system modifications following Git clone or pull operations

Detection Strategies

  • Monitor for process execution events where Git LFS spawns executables from repository working directories rather than system paths
  • Implement file integrity monitoring on development workstations to detect rogue executables in Git repositories
  • Deploy endpoint detection rules to alert on git.exe or similar binaries executing from non-standard locations (not C:\Program Files\Git\ or similar)
  • Configure SentinelOne behavioral AI to detect anomalous execution patterns associated with binary planting attacks

Monitoring Recommendations

  • Enable verbose logging for Git and Git LFS operations to capture executable path resolution details
  • Implement centralized logging for all developer workstations to correlate suspicious Git-related activities
  • Configure alerts for new executable files appearing in cloned repository directories
  • Regularly audit Git LFS versions across development infrastructure to ensure vulnerable versions are identified and tracked

How to Mitigate CVE-2020-27955

Immediate Actions Required

  • Upgrade Git LFS to the latest version immediately; versions after 2.12.0 address this vulnerability
  • Audit all development systems, CI/CD pipelines, and build servers for vulnerable Git LFS installations
  • Review recently cloned repositories for suspicious executable files that could indicate attempted exploitation
  • Temporarily restrict Git LFS usage on Windows systems until patches are applied

Patch Information

The Git LFS project has released patched versions to address this vulnerability. Organizations should upgrade to the latest stable release available from the GitHub Releases for Git LFS. The fix modifies how Git LFS resolves executable paths, ensuring that only trusted system directories are searched when invoking external programs.

Workarounds

  • Configure Windows systems to exclude the current directory from the PATH search order using the NoDefaultCurrentDirectoryInExePath registry setting
  • Implement application whitelisting to prevent execution of unauthorized binaries in repository directories
  • Use Git LFS only on Linux or macOS systems where the PATH search behavior differs until patches can be applied
  • Deploy SentinelOne endpoint protection to detect and block binary planting attack attempts in real-time
bash
# Windows Registry Configuration to Mitigate Search Path Attacks
# Set NoDefaultCurrentDirectoryInExePath to prevent CWD from being searched
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v SafeDllSearchMode /t REG_DWORD /d 1 /f

# Verify Git LFS version after upgrade
git lfs version

# Check for suspicious executables in repository directories
dir /s /b *.exe *.bat *.cmd | findstr /i "git"

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGit Large File Storage

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability92.93%

  • 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-427
  • Technical References
  • Packet Storm RCE File

  • Packet Storm RCE File

  • Full Disclosure Mailing List

  • Exploit Box Homepage

  • GitHub Releases for Git LFS

  • Legal Hackers Homepage

  • Legal Hackers CVE-2020-27955 Advisory
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS 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