Skip to content
OpenAdvisories
High · 8.6 CVE-2025-26625 BIT-git-lfs-2025-26625EUVD-2025-34886GHSA-6pvw-g552-53c5GO-2025-4038

Git LFS may write to arbitrary files via crafted symlinks

Published Oct 17, 2025 · Updated Oct 21, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
git-lfs git-lfs >= 0.5.2, < 3.7.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 git-lfs 3.7.1-1 —
Debian 13 git-lfs 3.6.1-1+deb13u1 —
Debian 12 git-lfs 3.3.0-1+deb12u2 —
ReleasePackageFixed inAdvisory
Ubuntu 25.10 git-lfs 3.6.1-1ubuntu0.1 USN-7977-1
Ubuntu 22.04 LTS git-lfs No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS git-lfs 3.4.1-1ubuntu0.3+esm2 USN-7977-1
Ubuntu Pro 22.04 LTS git-lfs 3.0.2-1ubuntu0.3+esm2 USN-7977-1
Ubuntu Pro 20.04 LTS git-lfs 2.9.2-1ubuntu0.1~esm2 USN-7977-1
Ubuntu Pro 18.04 LTS git-lfs 2.3.4-1ubuntu0.1~esm1 USN-7977-1
ReleasePackageFixed inAdvisory
RHEL 10 git-lfs 3.6.1-4.el10_1 RHSA-2025:23667
RHEL 9 git-lfs 3.6.1-4.el9_7 RHSA-2025:23744
RHEL 8 git-lfs 3.4.1-6.el8_10 RHSA-2025:23745
Show 12 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 10.0 EUS git-lfs 3.6.1-2.el10_0.1 RHSA-2026:0224
RHEL 10.0 EUS ruby +5 3.3.10-11.el10_0 RHSA-2025:23927
RHEL 10.0 EUS rubygem-bigdecimal 3.1.5-11.el10_0 RHSA-2025:23927
RHEL 10.0 EUS rubygem-bundler 2.5.22-11.el10_0 RHSA-2025:23927
RHEL 10.0 EUS rubygem-io-console 0.7.1-11.el10_0 RHSA-2025:23927
RHEL 10.0 EUS rubygem-irb 1.13.1-11.el10_0 RHSA-2025:23927
RHEL 10.0 EUS rubygem-json 2.7.2-11.el10_0 RHSA-2025:23927
RHEL 10.0 EUS rubygem-minitest 5.20.0-11.el10_0 RHSA-2025:23927
RHEL 10.0 EUS rubygem-power_assert 2.0.3-11.el10_0 RHSA-2025:23927
RHEL 10.0 EUS rubygem-psych 5.1.2-11.el10_0 RHSA-2025:23927
RHEL 10.0 EUS rubygem-racc 1.7.3-11.el10_0 RHSA-2025:23927
RHEL 10.0 EUS rubygem-rake 13.1.0-11.el10_0 RHSA-2025:23927
RHEL 10.0 EUS rubygem-rbs 3.4.0-11.el10_0 RHSA-2025:23927
RHEL 10.0 EUS rubygem-rdoc 6.6.3.1-11.el10_0 RHSA-2025:23927
RHEL 10.0 EUS rubygem-rexml 3.4.4-11.el10_0 RHSA-2025:23927
RHEL 10.0 EUS rubygem-rss 0.3.1-11.el10_0 RHSA-2025:23927
RHEL 10.0 EUS rubygem-test-unit 3.6.1-11.el10_0 RHSA-2025:23927
RHEL 10.0 EUS rubygem-typeprof 0.21.9-11.el10_0 RHSA-2025:23927
RHEL 10.0 EUS rubygems +1 3.5.22-11.el10_0 RHSA-2025:23927
RHEL 9.6 EUS git-lfs 3.6.1-2.el9_6.1 RHSA-2026:0199
RHEL 9.6 EUS ruby +5 3.3.10-5.module+el9.6.0+23780+e40d2335 RHSA-2025:23648
RHEL 9.6 EUS rubygem-bigdecimal 3.1.5-5.module+el9.6.0+23780+e40d2335 RHSA-2025:23648
RHEL 9.6 EUS rubygem-bundler 2.5.22-5.module+el9.6.0+23780+e40d2335 RHSA-2025:23648
RHEL 9.6 EUS rubygem-io-console 0.7.1-5.module+el9.6.0+23780+e40d2335 RHSA-2025:23648
RHEL 9.6 EUS rubygem-irb 1.13.1-5.module+el9.6.0+23780+e40d2335 RHSA-2025:23648
RHEL 9.6 EUS rubygem-json 2.7.2-5.module+el9.6.0+23780+e40d2335 RHSA-2025:23648
RHEL 9.6 EUS rubygem-minitest 5.20.0-5.module+el9.6.0+23780+e40d2335 RHSA-2025:23648
RHEL 9.6 EUS rubygem-mysql2 +1 0.5.5-1.module+el9.4.0+21222+faeeed2f RHSA-2025:23648
RHEL 9.6 EUS rubygem-pg +1 1.5.4-1.module+el9.4.0+21222+faeeed2f RHSA-2025:23648
RHEL 9.6 EUS rubygem-power_assert 2.0.3-5.module+el9.6.0+23780+e40d2335 RHSA-2025:23648
RHEL 9.6 EUS rubygem-psych 5.1.2-5.module+el9.6.0+23780+e40d2335 RHSA-2025:23648
RHEL 9.6 EUS rubygem-racc 1.7.3-5.module+el9.6.0+23780+e40d2335 RHSA-2025:23648
RHEL 9.6 EUS rubygem-rake 13.1.0-5.module+el9.6.0+23780+e40d2335 RHSA-2025:23648
RHEL 9.6 EUS rubygem-rbs 3.4.0-5.module+el9.6.0+23780+e40d2335 RHSA-2025:23648
RHEL 9.6 EUS rubygem-rdoc 6.6.3.1-5.module+el9.6.0+23780+e40d2335 RHSA-2025:23648
RHEL 9.6 EUS rubygem-rexml 3.4.4-5.module+el9.6.0+23780+e40d2335 RHSA-2025:23648
RHEL 9.6 EUS rubygem-rss 0.3.1-5.module+el9.6.0+23780+e40d2335 RHSA-2025:23648
RHEL 9.6 EUS rubygem-test-unit 3.6.1-5.module+el9.6.0+23780+e40d2335 RHSA-2025:23648
RHEL 9.6 EUS rubygem-typeprof 0.21.9-5.module+el9.6.0+23780+e40d2335 RHSA-2025:23648
RHEL 9.6 EUS rubygems +1 3.5.22-5.module+el9.6.0+23780+e40d2335 RHSA-2025:23648
RHEL 9.4 EUS git-lfs 3.4.1-4.el9_4.3 RHSA-2026:0204
RHEL 9.2 E4S git-lfs 3.2.0-2.el9_2.4 RHSA-2026:0203
RHEL 9.0 E4S git-lfs 2.13.3-5.el9_0.5 RHSA-2026:0472
RHEL 8.8 TUS git-lfs 3.2.0-2.el8_8.5 RHSA-2026:0460
RHEL 8.8 E4S git-lfs 3.2.0-2.el8_8.5 RHSA-2026:0460
RHEL 8.6 TUS git-lfs 2.13.3-3.el8_6.5 RHSA-2026:0465
RHEL 8.6 E4S git-lfs 2.13.3-3.el8_6.5 RHSA-2026:0465
RHEL 8.6 AUS git-lfs 2.13.3-3.el8_6.5 RHSA-2026:0465
RHEL 8.4 EUS Long Life git-lfs 2.13.3-3.el8_4.3 RHSA-2026:0459
RHEL 8.4 AUS git-lfs 2.13.3-3.el8_4.3 RHSA-2026:0459

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 git-lfs 3.6.1-4.el10_1 ALSA-2025:23667
AlmaLinux 9 git-lfs 3.6.1-4.el9_7 ALSA-2025:23744
AlmaLinux 8 git-lfs 3.4.1-6.el8_10 ALSA-2025:23745

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 git-lfs 3.6.1-4.el10_1 RLSA-2025:23667
Rocky Linux 9 git-lfs 3.6.1-4.el9_7 RLSA-2025:23744
Rocky Linux 8 git-lfs 3.4.1-6.el8_10 RLSA-2025:23745
ReleasePackageFixed inAdvisory
SLES 15 SP7 git-lfs 3.7.1-150600.13.6.1 SUSE-SU-2026:3801-1
SLES 15 SP6 git-lfs 3.7.1-150600.13.6.1 SUSE-SU-2026:3801-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP6 git-lfs 3.7.1-150600.13.6.1 SUSE-SU-2026:3801-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed git-lfs 3.7.1-1.1 openSUSE-SU-2025:15643-1
openSUSE Tumbleweed govulncheck-vulndb 0.0.20251105T184115-1.1 openSUSE-SU-2025:15710-1
openSUSE Leap 16.0 git-lfs 3.7.1-bp160.1.1 openSUSE-SU-2026:21621-1
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1
ReleasePackageFixed inAdvisory
Alpine v3.24 git-lfs 3.7.1-r0 —
Alpine v3.23 git-lfs 3.7.1-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 git-lfs 3.7.1-79.amzn2023 ALAS2023-2025-1258

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 git-lfs 3.6.1-4.el10_1 ELSA-2025-23667
Oracle Linux 9 git-lfs 3.6.1-4.el9_7 ELSA-2025-23744
Oracle Linux 8 git-lfs 3.4.1-6.el8_10 ELSA-2025-23745

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/git-lfs/git-lfs >= 0.5.2, < 3.7.1 3.7.1 GHSA-6pvw-g552-53c5
Go github.com/git-lfs/git-lfs >= 0.5.2 — GO-2025-4038
Go github.com/git-lfs/git-lfs/v3 < 3.7.1 3.7.1 GO-2025-4038

Advisories 30

References