Skip to content

CVE-2025-26625 Git LFS may write to arbitrary files via crafted symlinks

HighCVSS 8.6 EPSS 1.1%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total
Technology
UbuntuDebian

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.

Upgrade path

9 packages: 6 fixed, 1 partially fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/git-lfs(Ubuntu 22.04) All versions No fix listed No fix yet
git-lfs github.com/git-lfs/git-lfs/v3(Go) < 3.7.1; >= 0.5.2; >= 0.5.2, < 3.7.1; >= 0.5.2, <= 3.7.0 3.7.1 Partially fixed
alpine/git-lfs(Alpine v3.23) < 3.7.1-r0 3.7.1-r0 Fixed
alpine/git-lfs(Alpine v3.24) < 3.7.1-r0 3.7.1-r0 Fixed
debian/git-lfs(Debian 12) < 3.3.0-1+deb12u2; = 3.3.0-1; = 3.3.0-1+deb12u1 3.3.0-1+deb12u2 Fixed
debian/git-lfs(Debian 13) < 3.6.1-1+deb13u1; = 3.6.1-1 3.6.1-1+deb13u1 Fixed
debian/git-lfs(Debian 14) < 3.7.1-1; = 3.6.1-1 3.7.1-1 Fixed
ubuntu/git-lfs(Ubuntu 24.04) < 3.4.1-1ubuntu0.3+esm2 3.4.1-1ubuntu0.3+esm2 Fixed
git-lfs github.com/git-lfs/git-lfs/v3 = >= 0.5.2, < 3.7.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
git-lfs github.com/git-lfs/git-lfs/v3(Go) >= 0.5.2, < 3.7.1 3.7.1
git-lfs github.com/git-lfs/git-lfs/v3(Go) >= 0.5.2 No fix listed
git-lfs github.com/git-lfs/git-lfs/v3(Go) < 3.7.1 3.7.1
debian/git-lfs(Debian:12) < 3.3.0-1+deb12u2 3.3.0-1+deb12u2
debian/git-lfs(Debian:12) = 3.3.0-1 No fix listed
debian/git-lfs(Debian:12) = 3.3.0-1+deb12u1 No fix listed
debian/git-lfs(Debian:13) < 3.6.1-1+deb13u1 3.6.1-1+deb13u1
debian/git-lfs(Debian:13) = 3.6.1-1 No fix listed
debian/git-lfs(Debian:14) < 3.7.1-1 3.7.1-1
debian/git-lfs(Debian:14) = 3.6.1-1 No fix listed
git-lfs github.com/git-lfs/git-lfs/v3(Go) >= 0.5.2, <= 3.7.0 No fix listed
git-lfs github.com/git-lfs/git-lfs/v3 = >= 0.5.2, < 3.7.1 No fix listed
ubuntu/git-lfs(Ubuntu:22.04) All versions No fix listed
alpine/git-lfs(Alpine:v3.23) < 3.7.1-r0 3.7.1-r0
alpine/git-lfs(Alpine:v3.24) < 3.7.1-r0 3.7.1-r0
ubuntu/git-lfs(Ubuntu:24.04) < 3.4.1-1ubuntu0.3+esm2 3.4.1-1ubuntu0.3+esm2

References