Vulnerability · Published Oct 17, 2025 · Assigned by GitHub_M

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

High 8.6

In plain English

A high-severity security flaw in git-lfs from git-lfs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 65% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.6High
Exploit odds (30 days)1.1%top 35.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10git-lfs3.6.1-4.el10_1ALSA-2025:23667
AlmaLinux:8git-lfs3.4.1-6.el8_10ALSA-2025:23745
AlmaLinux:9git-lfs3.6.1-4.el9_7ALSA-2025:23744
Alpine:v3.23git-lfs3.7.1-r0ALPINE-CVE-2025-26625
Alpine:v3.24git-lfs3.7.1-r0ALPINE-CVE-2025-26625
Debian:12git-lfs3.3.0-1+deb12u2DEBIAN-CVE-2025-26625
Debian:13git-lfs3.6.1-1+deb13u1DEBIAN-CVE-2025-26625
Debian:14git-lfs3.7.1-1DEBIAN-CVE-2025-26625
Gogithub.com/git-lfs/git-lfs3.7.1GHSA-6pvw-g552-53c5
Gogithub.com/git-lfs/git-lfsno fix listedGO-2025-4038
Gogithub.com/git-lfs/git-lfs/v33.7.1GO-2025-4038
Rocky Linux:10git-lfs0:3.6.1-4.el10_1RLSA-2025:23667
Rocky Linux:8git-lfs0:3.4.1-6.el8_10RLSA-2025:23745
Rocky Linux:9git-lfs0:3.6.1-4.el9_7RLSA-2025:23744
Ubuntu:22.04:LTSgit-lfsno fix listedUBUNTU-CVE-2025-26625
Ubuntu:25.10git-lfs3.6.1-1ubuntu0.1USN-7977-1
Ubuntu:25.10git-lfs3.6.1-1ubuntu0.1UBUNTU-CVE-2025-26625

Affected products (as reported)

VendorProductVersions
git-lfs git-lfs >= 0.5.2, < 3.7.1

Weakness: CWE-59 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

References