Critical Security Flaw in Git LFS: Arbitrary File Write Vulnerability

git-lfs Updated 24 Dec 2025

Summary

22/12/2025
N/A
Yes i
Unrated
Not published

ALSA-2025:23744: Important: git-lfs security update. Affects git-lfs versions < 3.6.1-4.el9_7. Fixed in 3.6.1-4.el9_7. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Git Large File Storage (LFS) is an extension for Git that allows users to manage large files such as audio samples, videos, datasets, and graphics efficiently. Instead of storing large files directly in the Git repository, Git LFS replaces them with text pointers, while the actual file contents are stored on a remote server. This functionality is crucial for developers working with large assets, but it also introduces potential security risks if not properly managed.

Vulnerability Detail

The vulnerability identified as CVE-2025-26625 in Git LFS allows an attacker to exploit crafted symbolic links to write to arbitrary files on the system. This could lead to unauthorized access to sensitive data, system corruption, or other malicious activities. The issue arises from improper handling of symlinks, which can be manipulated to redirect file writes to unintended locations, posing a significant risk to system integrity and security.

How To Fix

Minimum fixed version

3.6.1-4.el9_7

This is the first release that contains the fix.

sudo dnf update git-lfs

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users are advised to avoid using Git LFS with untrusted repositories or files until the update is applied. Additionally, ensure that your system's permissions are configured to limit the potential impact of this vulnerability.

Conclusion

The Git LFS vulnerability CVE-2025-26625 presents a significant risk due to its potential for arbitrary file writes. Users are strongly encouraged to update to the latest version to mitigate this risk and ensure the security of their systems. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for git-lfs →

Share this vulnerability

FAQ

Git LFS is an extension for Git that allows users to manage large files more efficiently by replacing them with text pointers and storing the actual files on a remote server.

CVE-2025-26625 refers to a security vulnerability in Git LFS that allows arbitrary file writes via crafted symlinks, posing a risk to system security.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The consequences can include unauthorized access to sensitive data, system corruption, and other malicious activities that could compromise system integrity.

It is recommended to regularly check for updates and apply them promptly to ensure that any known vulnerabilities are patched in your software.

Related vulnerabilities

Recent vulnerabilities recorded for git-lfs.

How To Fix

Minimum fixed version

3.6.1-4.el9_7

This is the first release that contains the fix.

sudo dnf update git-lfs

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback