CVE-2025-26625
git-lfs: Git LFS may write to arbitrary files via crafted symlinks
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · October 18, 2025
Updated · June 30, 2026
Description
A flaw was found in Git LFS. Running git lfs checkout and git lfs pull in a specially crafted repository, specifically with symbolic or hard links tracked by Git LFS and pointing to files outside the working tree or in a bare repository, can cause Git LFS to write to arbitrary file system locations accessible to the user running these commands.
Statement
This vulnerability can cause Git LFS to write to arbitrary file system locations accessible to the user running git lfs checkout and git lfs pull. These commands are typically run by regular users without special access to system files, limiting the impact of this issue.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
To prevent the creation of symbolic links when cloning or fetching a repository, the core.symlinks configuration option can be set to false, mitigating this vulnerability for new repositories. However, existing repositories containing symbolic or hard links are still vulnerable to this issue.
Use the following command to set the core.symlinks configuration option to false:
git config --global core.symlinks false
CVSS / CWE
CVSS 3.1 · 8.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
CWE-59 · Improper Link Resolution Before File Access ('Link Following')