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
    • 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-2025-26625

CVE-2025-26625: Git LFS Path Traversal Vulnerability

CVE-2025-26625 is a path traversal vulnerability in Git LFS that allows attackers to write to arbitrary file system locations using symbolic or hard links. This article covers technical details, affected versions, and mitigation.

Published: April 15, 2026

CVE-2025-26625 Overview

CVE-2025-26625 is a high-severity symlink attack vulnerability in Git Large File Storage (Git LFS), a widely-used Git extension for versioning large files. The vulnerability affects Git LFS versions 0.5.2 through 3.7.0 and allows attackers to craft malicious repositories containing symbolic or hard links that cause Git LFS to write to arbitrary file system locations accessible to the user running git lfs checkout or git lfs pull commands.

This vulnerability stems from insufficient validation when populating a Git repository's working tree with Git LFS object contents. The affected commands fail to check for symbolic links before writing to files, enabling path traversal outside the intended working tree. Additionally, when these commands are executed in a bare repository context, they could write to files visible outside the repository entirely.

Critical Impact

Attackers can achieve arbitrary file write capabilities by crafting repositories with malicious symbolic or hard links, potentially leading to code execution, configuration tampering, or privilege escalation on affected systems.

Affected Products

  • Git LFS versions 0.5.2 through 3.7.0
  • Systems using git lfs checkout command
  • Systems using git lfs pull command

Discovery Timeline

  • October 17, 2025 - CVE-2025-26625 published to NVD
  • October 21, 2025 - Last updated in NVD database

Technical Details for CVE-2025-26625

Vulnerability Analysis

This vulnerability is classified as CWE-59 (Improper Link Resolution Before File Access), commonly known as a symlink attack. The core issue lies in how Git LFS handles file operations during checkout and pull operations without properly validating the target paths against symbolic or hard links that may exist in the repository.

When a user clones or fetches a maliciously crafted repository, an attacker can include symbolic links that point to arbitrary locations outside the working tree. Subsequently, when git lfs checkout or git lfs pull is executed, Git LFS follows these links and writes LFS object contents to the attacker-controlled target locations. This can overwrite sensitive files such as SSH authorized keys, shell configuration files, or application configuration, potentially leading to code execution or credential compromise.

The vulnerability is particularly dangerous in bare repository scenarios, where the commands could write to locations entirely outside the repository structure, expanding the potential attack surface significantly.

Root Cause

The root cause is the absence of symlink and hard link validation before file write operations in the Git LFS checkout and pull command handlers. The affected code paths in commands/command_checkout.go and commands/pull.go did not incorporate the tools package functions needed to detect directory/symlink conflicts prior to writing file contents.

Additionally, the lfs/gitfilter_smudge.go file used os.Stat() instead of os.Lstat(), which follows symbolic links rather than examining the link itself, allowing the vulnerability to be exploited through crafted symlinks.

Attack Vector

The attack requires user interaction—specifically, a victim must clone a malicious repository and execute git lfs checkout or git lfs pull. This makes it a network-accessible attack vector that requires social engineering to trick users into interacting with attacker-controlled repositories. The attack can target developers, CI/CD pipelines, or any automated systems that fetch and process Git repositories with LFS-tracked content.

go
// Security patch in commands/command_checkout.go
// Added check for dir/symlink conflicts before checkout/pull operations

 	"github.com/git-lfs/git-lfs/v3/git"
 	"github.com/git-lfs/git-lfs/v3/lfs"
 	"github.com/git-lfs/git-lfs/v3/tasklog"
+	"github.com/git-lfs/git-lfs/v3/tools"
 	"github.com/git-lfs/git-lfs/v3/tq"
 	"github.com/git-lfs/git-lfs/v3/tr"
 	"github.com/spf13/cobra"

Source: GitHub Commit

go
// Security patch in lfs/gitfilter_smudge.go
// Changed from os.Stat() to os.Lstat() to properly detect symlinks

func (f *GitFilter) SmudgeToFile(filename string, ptr *Pointer, download bool, manifest tq.Manifest, cb tools.CopyCallback) error {
 	tools.MkdirAll(filepath.Dir(filename), f.cfg)

-	if stat, _ := os.Stat(filename); stat != nil {
+	// When no pointer file exists on disk, we should use the permissions
+	// defined for the file in Git, since the executable mode may be set.
+	// However, to conform with our legacy behaviour, we do not do this
+	// at present.
+	var mode os.FileMode = 0666
+	if stat, _ := os.Lstat(filename); stat != nil && stat.Mode().IsRegular() {
 		if ptr.Size == 0 && stat.Size() == 0 {
 			return nil
 		}

-		if stat.Mode()&0200 == 0 {
-			if err := os.Chmod(filename, stat.Mode()|0200); err != nil {
-				return errors.Wrap(err,
-					tr.Tr.Get("Could not restore write permission"))
-			}
-
-			// When we're done, return the file back to its normal
-			// permission bits.
-			defer os.Chmod(filename, stat.Mode())
-		}
+		mode = stat.Mode().Perm()
 	}

Source: GitHub Commit

Detection Methods for CVE-2025-26625

Indicators of Compromise

  • Unexpected symbolic links within Git repositories pointing to sensitive system paths (e.g., ~/.ssh/authorized_keys, /etc/passwd, shell rc files)
  • File modification timestamps on sensitive files correlating with Git LFS checkout or pull operations
  • Unusual Git LFS activity in system logs following repository clone operations
  • Presence of hard links in repository directories that reference files outside the working tree

Detection Strategies

  • Monitor file system operations during git lfs checkout and git lfs pull execution for writes outside the repository working tree
  • Implement repository scanning to detect symbolic or hard links that point to paths outside the repository root before processing LFS objects
  • Deploy endpoint detection rules to alert on Git LFS processes writing to sensitive system directories
  • Audit Git LFS version information across development environments to identify unpatched instances (git lfs version)

Monitoring Recommendations

  • Enable file integrity monitoring (FIM) on critical system files and directories commonly targeted by symlink attacks
  • Configure logging for Git LFS command execution in CI/CD environments to track repository sources and LFS operations
  • Implement network monitoring to identify repository clones from untrusted or suspicious sources
  • Review and baseline Git configuration settings across development machines, particularly core.symlinks values

How to Mitigate CVE-2025-26625

Immediate Actions Required

  • Upgrade Git LFS to version 3.7.1 or later immediately across all development environments and CI/CD pipelines
  • Audit existing repositories for suspicious symbolic or hard links using find . -type l and find . -type f -links +1
  • Review recent Git LFS checkout and pull operations on systems that may have interacted with untrusted repositories
  • Consider running git lfs install --force after upgrading to ensure hooks are properly updated

Patch Information

The vulnerability is fixed in Git LFS version 3.7.1. The patch introduces proper symlink and hard link validation in the checkout and pull command paths, ensuring files are not written through link targets outside the working tree. The fix also addresses bare repository handling to prevent writes outside the repository structure.

Key commits implementing the fix:

  • Commit 0cffe93 - Check for dir/symlink conflicts on checkout/pull
  • Commit 5c11ffc - Create new files on checkout and pull with proper link handling
  • Commit d02bd13 - Fix bare repo pull/checkout path handling

For additional details, see the GitHub Security Advisory and Release Notes for v3.7.1.

Workarounds

  • Disable symlink support in Git by setting core.symlinks configuration option to false for new clones and fetches
  • Note that the workaround does not protect against symbolic or hard links already present in existing repositories
  • Exercise caution when cloning repositories from untrusted sources, particularly those containing LFS-tracked files
  • Consider implementing repository sandboxing or containerization for processing untrusted Git repositories
bash
# Configuration example - Disable symlinks globally for new repositories
git config --global core.symlinks false

# Disable symlinks for a specific repository
cd /path/to/repository
git config core.symlinks false

# Verify Git LFS version and upgrade if needed
git lfs version
# If version < 3.7.1, upgrade:
# On macOS with Homebrew:
brew upgrade git-lfs
# On Linux with package manager:
sudo apt-get update && sudo apt-get install git-lfs
# Or download directly from GitHub releases

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechGit Lfs

  • SeverityHIGH

  • CVSS Score8.6

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/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
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-59
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Release Note

  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2026-8468: Elixir Plug Library DoS Vulnerability

  • CVE-2026-8295: simdjson Information Disclosure Vulnerability

  • CVE-2025-68421: Comarch ERP Optima Auth Bypass Vulnerability

  • CVE-2025-68420: Comarch ERP Optima 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