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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP6 | git-lfs | 3.7.1-150600.13.6.1 | SUSE-SU-2026:3801-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | git-lfs | 3.7.1-r0 | — |
| Alpine v3.23 | git-lfs | 3.7.1-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | git-lfs | 3.7.1-79.amzn2023 | ALAS2023-2025-1258 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| 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
- ALSA-2025:23667 Important: git-lfs security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2025:23744 Important: git-lfs security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2025:23745 Important: git-lfs security update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2025-2886 Red Hat Enterprise Linux (git-lfs, opentelemetry-collector): Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 20, 2026
- RHSA-2025:23927 Red Hat Security Advisory: ruby security update Red Hat Security Advisories (RHSA) · Oct 14, 2026
- RHSA-2025:23648 Red Hat Security Advisory: ruby:3.3 security update Red Hat Security Advisories (RHSA) · Oct 14, 2026
- SUSE-SU-2026:3801-1 Security update for git-lfs SUSE / openSUSE Security Updates · Aug 27, 2026
- openSUSE-SU-2026:21621-1 Security update for git-lfs SUSE / openSUSE Security Updates · Aug 23, 2026
- openSUSE-SU-2026:21483-1 Security update for govulncheck-vulndb SUSE / openSUSE Security Updates · Jul 31, 2026
- RHSA-2026:0472 Red Hat Security Advisory: git-lfs security update Red Hat Security Advisories (RHSA) · Jun 30, 2026
- RHSA-2026:0465 Red Hat Security Advisory: git-lfs security update Red Hat Security Advisories (RHSA) · Jun 30, 2026
- RHSA-2026:0460 Red Hat Security Advisory: git-lfs security update Red Hat Security Advisories (RHSA) · Jun 30, 2026
- RHSA-2026:0459 Red Hat Security Advisory: git-lfs security update Red Hat Security Advisories (RHSA) · Jun 30, 2026
- RHSA-2026:0224 Red Hat Security Advisory: git-lfs security update Red Hat Security Advisories (RHSA) · Jun 30, 2026
- RHSA-2026:0203 Red Hat Security Advisory: git-lfs security update Red Hat Security Advisories (RHSA) · Jun 30, 2026
- RHSA-2026:0204 Red Hat Security Advisory: git-lfs security update Red Hat Security Advisories (RHSA) · Jun 30, 2026
- RHSA-2026:0199 Red Hat Security Advisory: git-lfs security update Red Hat Security Advisories (RHSA) · Jun 30, 2026
- RHSA-2025:23745 Red Hat Security Advisory: git-lfs security update Red Hat Security Advisories (RHSA) · Jun 30, 2026
- RHSA-2025:23744 Red Hat Security Advisory: git-lfs security update Red Hat Security Advisories (RHSA) · Jun 30, 2026
- RHSA-2025:23667 Red Hat Security Advisory: git-lfs security update Red Hat Security Advisories (RHSA) · Jun 30, 2026
- ALAS2023-2025-1258 Important: git-lfs security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · May 9, 2026
- USN-7977-1 git-lfs vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- openSUSE-SU-2025:15710-1 govulncheck-vulndb-0.0.20251105T184115-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:15643-1 git-lfs-3.7.1-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- RLSA-2025:23744 Important: git-lfs security update Rocky Linux Security Advisories · Dec 23, 2025
- RLSA-2025:23745 Important: git-lfs security update Rocky Linux Security Advisories · Dec 23, 2025
- ELSA-2025-23744 Important: git-lfs security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Dec 21, 2025
- ELSA-2025-23745 Important: git-lfs security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Dec 21, 2025
- RLSA-2025:23667 Important: git-lfs security update Rocky Linux Security Advisories · Dec 20, 2025
- ELSA-2025-23667 Important: git-lfs security update (Oracle Linux 10) Oracle Linux Security Advisories (ELSA) · Dec 18, 2025
References
- https://github.com/git-lfs/git-lfs/security/advisories/GHSA-6pvw-g552-53c5
- https://github.com/git-lfs/git-lfs/commit/0cffe93176b870055c9dadbb3cc9a4a440e98396
- https://github.com/git-lfs/git-lfs/commit/5c11ffce9a4f095ff356bc781e2a031abb46c1a8
- https://github.com/git-lfs/git-lfs/commit/d02bd13f02ef76f6807581cd6b34709069cb3615
- https://github.com/git-lfs/git-lfs/releases/tag/v3.7.1