CVE-2025-26625
CVE-2025-26625 · Git LFS may write to arbitrary files via crafted symlinks
CVSS 8.6 · High · EPSS 1.1% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- git-lfsNo fix published
- git-lfs Alpine 3.23Update to 3.7.1-r0
- git-lfs Alpine 3.24Update to 3.7.1-r0
- git-lfs Debian 12Update to 3.3.0-1+deb12u2
- and 7 more
Check the installed version:
apk list -I -o git-lfsdpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="git-lfs"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- DLA-4846-1 · Debian 12 ·
- SUSE-SU-2026:3801-1 · SUSE Linux Enterprise Module for Development Tools 15 SP7, SUSE Linux Enterprise Server 15 SP6-LTSS, SUSE Linux Enterprise Server for SAP Applications 15 SP6 ·
- openSUSE-SU-2026:21621-1 · openSUSE Leap 16.0 ·
- openSUSE-SU-2026:21483-1 · openSUSE Leap 16.0 ·
- DLA-4610-1 · Debian 11 ·
- USN-7977-1 · Ubuntu 25.10, Ubuntu Pro 18.04 LTS, Ubuntu Pro 20.04 LTS, Ubuntu Pro 22.04 LTS, Ubuntu Pro 24.04 LTS ·
- RHSA-2026:0472 · Red Hat rhel e4s 9.0 appstream ·
- RHSA-2026:0465 · Red Hat rhel aus 8.6 appstream, Red Hat rhel e4s 8.6 appstream, Red Hat rhel tus 8.6 appstream ·
- RHSA-2026:0460 · Red Hat rhel e4s 8.8 appstream, Red Hat rhel tus 8.8 appstream ·
- RHSA-2026:0459 · Red Hat rhel aus 8.4 appstream, Red Hat rhel eus long life 8.4 appstream ·
- RHSA-2026:0224 · Red Hat enterprise linux eus 10.0 ·
- RHSA-2026:0203 · Red Hat rhel e4s 9.2 appstream ·
- RHSA-2026:0204 · Red Hat rhel eus 9.4 appstream ·
- RHSA-2026:0199 · Red Hat rhel eus 9.6 appstream ·
- RHSA-2025:23927 · Red Hat enterprise linux eus 10.0 ·
- RLSA-2025:23744 · Rocky Linux 9 ·
- RLSA-2025:23745 · Rocky Linux 8 ·
- RHSA-2025:23745 · Red Hat Enterprise Linux 8 appstream ·
- RHSA-2025:23744 · Red Hat Enterprise Linux 9 appstream ·
- ALSA-2025:23744 · AlmaLinux 9 ·
- ALSA-2025:23745 · AlmaLinux 8 ·
- RLSA-2025:23667 · Rocky Linux 10 ·
- RHSA-2025:23667 · Red Hat Enterprise Linux 10.1 ·
- RHSA-2025:23648 · Red Hat rhel eus 9.6 appstream ·
- ALSA-2025:23667 · AlmaLinux 10 ·
- openSUSE-SU-2025:15710-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2025:15643-1 · openSUSE Tumbleweed ·
Stack: system
Affected products and versions
git-lfs
- Versions
- >= 0.5.2, < 3.7.1: Affected
No fix published
git-lfs Alpine 3.23
- Affected ranges
- ECOSYSTEM: < 3.7.1-r0
Update to 3.7.1-r0
git-lfs Alpine 3.24
- Affected ranges
- ECOSYSTEM: < 3.7.1-r0
Update to 3.7.1-r0
git-lfs Debian 12
- Versions
- 3.3.0-1
- 3.3.0-1+deb12u1
- Affected ranges
- ECOSYSTEM: < 3.3.0-1+deb12u2
Update to 3.3.0-1+deb12u2
git-lfs Debian 13
- Versions
- 3.6.1-1
- Affected ranges
- ECOSYSTEM: < 3.6.1-1+deb13u1
Update to 3.6.1-1+deb13u1
git-lfs Debian 14
- Versions
- 3.6.1-1
- Affected ranges
- ECOSYSTEM: < 3.7.1-1
Update to 3.7.1-1
git-lfs Ubuntu Pro 18.04 LTS
- Versions
- 2.2.1-1
- 2.3.3-1
- 2.3.4-1
- 2.3.4-1ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
git-lfs Ubuntu Pro 20.04 LTS
- Versions
- 2.8.0-4
- 2.9.0-1
- 2.9.1-1
- 2.9.2-1
- 2.9.2-1ubuntu0.1~esm2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
git-lfs Ubuntu 22.04 LTS
- Versions
- 2.13.2-1
- 3.0.2-1
- 3.0.2-1ubuntu0.1
- 3.0.2-1ubuntu0.2
- 3.0.2-1ubuntu0.3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
git-lfs Ubuntu Pro 24.04 LTS
- Versions
- 3.4.0-1build1
- 3.4.1-1
- 3.4.1-1ubuntu0.1
- 3.4.1-1ubuntu0.2
- 3.4.1-1ubuntu0.2+esm1
- 3.4.1-1ubuntu0.3
All versions (7)
- 3.4.1-1ubuntu0.3+esm1
- Affected ranges
- ECOSYSTEM: < 3.4.1-1ubuntu0.3+esm2
Update to 3.4.1-1ubuntu0.3+esm2
git-lfs Ubuntu 25.10
- Versions
- 3.6.1-1
- Affected ranges
- ECOSYSTEM: < 3.6.1-1ubuntu0.1
Update to 3.6.1-1ubuntu0.1
Original sources
- 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
- https://lists.debian.org/debian-lts-announce/2026/05/msg00055.html
- https://lists.debian.org/debian-lts-announce/2026/10/msg00040.html
- https://nvd.nist.gov/vuln/detail/CVE-2025-26625