CVE-2025-26625

Name
CVE-2025-26625
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.
NVD Severity
high
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
MISC https://github.com/git-lfs/git-lfs/commit/0cffe93176b870055c9dadbb3cc9a4a440e98396
MISC https://github.com/git-lfs/git-lfs/commit/5c11ffce9a4f095ff356bc781e2a031abb46c1a8
MISC https://github.com/git-lfs/git-lfs/commit/d02bd13f02ef76f6807581cd6b34709069cb3615
MISC https://github.com/git-lfs/git-lfs/releases/tag/v3.7.1
CONFIRM https://github.com/git-lfs/git-lfs/security/advisories/GHSA-6pvw-g552-53c5

Match rules

CPE URI Source package Min version Max version
git-lfs >= 0.5.2 < 3.7.1

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
git-lfs edge-community 3.7.0-r6 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs edge-community 3.7.0-r5 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs edge-community 3.7.0-r4 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs edge-community 3.7.0-r3 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs edge-community 3.7.0-r2 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs edge-community 3.7.0-r1 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs edge-community 3.7.0-r0 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs edge-community 3.6.0-r6 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs edge-community 3.6.0-r5 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs edge-community 3.6.0-r4 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs edge-community 3.6.0-r3 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs edge-community 3.6.0-r2 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs edge-community 3.6.0-r1 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs edge-community 3.6.0-r0 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs edge-community 3.1.2-r4 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs edge-community 3.1.2-r3 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs 3.23-community 3.7.0-r6 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs 3.23-community 3.7.0-r5 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs 3.23-community 3.7.0-r4 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs 3.22-community 3.6.0-r9 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs 3.22-community 3.6.0-r8 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs 3.22-community 3.6.0-r7 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs 3.22-community 3.6.0-r6 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs 3.22-community 3.6.0-r5 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
git-lfs 3.22-community 3.1.2-r4 None possibly vulnerable
git-lfs 3.22-community 3.1.2-r3 None possibly vulnerable