CVE-2025-26625
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-10-17

Last updated on: 2025-10-21

Assigner: GitHub, Inc.

Description
Git LFS is a Git extension for versioning large files. In Git LFS versions 0.5.2 through 3.7.0, when populating a Git repository's working tree with the contents of Git LFS objects, certain Git LFS commands may write to files visible outside the current Git working tree if symbolic or hard links exist which collide with the paths of files tracked by Git LFS. The git lfs checkout and git lfs pull commands do not check for symbolic links before writing to files in the working tree, allowing an attacker to craft a repository containing symbolic or hard links that cause Git LFS to write to arbitrary file system locations accessible to the user running these commands. As well, when the git lfs checkout and git lfs pull commands are run in a bare repository, they could write to files visible outside the repository. The vulnerability is fixed in version 3.7.1. As a workaround, support for symlinks in Git may be disabled by setting the core.symlinks configuration option to false, after which further clones and fetches will not create symbolic links. However, any symbolic or hard links in existing repositories will still provide the opportunity for Git LFS to write to their targets.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-10-17
Last Modified
2025-10-21
Generated
2026-05-07
AI Q&A
2025-10-17
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
git-lfs git-lfs 3.7.1
git-lfs git-lfs *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-59 The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability in Git LFS (versions 0.5.2 through 3.7.0) occurs because certain Git LFS commands (git lfs checkout and git lfs pull) do not check for symbolic links before writing files. An attacker can craft a repository containing symbolic or hard links that cause Git LFS to write files outside the intended Git working tree, potentially overwriting arbitrary file system locations accessible to the user running these commands. This can also happen when these commands are run in a bare repository. The issue is fixed in version 3.7.1, and a workaround involves disabling symlink support in Git by setting core.symlinks to false.


How can this vulnerability impact me? :

This vulnerability can allow an attacker to overwrite or write files outside the Git working tree, potentially leading to unauthorized modification of files on the user's system. This could result in data corruption, loss, or execution of malicious code if critical system or application files are overwritten. The impact depends on the permissions of the user running the Git LFS commands.


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability immediately, upgrade Git LFS to version 3.7.1 or later. As a workaround, you can disable support for symbolic links in Git by setting the core.symlinks configuration option to false (git config --global core.symlinks false). Note that this will prevent creation of new symbolic links in future clones and fetches, but existing repositories with symbolic or hard links may still be vulnerable.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart