CVE-2025-26625Git LFS may write to arbitrary files via crafted symlinks
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Go, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | git-lfs | Fixed | 3.6.1-1ubuntu0.1 | UBUNTU-CVE-2025-26625 |
| Ubuntu 24.04 | git-lfs | Fix pending | 3.4.1-1ubuntu0.3+esm2 (Ubuntu Pro) | UBUNTU-CVE-2025-26625 |
| Ubuntu 22.04 | git-lfs | Fix pending | UBUNTU-CVE-2025-26625 | |
| Ubuntu 20.04 | git-lfs | Fix pending | UBUNTU-CVE-2025-26625 | |
| Ubuntu 18.04 | git-lfs | Fix pending | UBUNTU-CVE-2025-26625 | |
| Debian 14 | git-lfs | Fixed | 3.7.1-1 | DEBIAN-CVE-2025-26625 |
| Debian 13 | git-lfs | Fixed | 3.6.1-1+deb13u1 | DEBIAN-CVE-2025-26625 |
| Debian 12 | git-lfs | Fixed | 3.3.0-1+deb12u2 | DEBIAN-CVE-2025-26625 |
| Red Hat Enterprise Linux 10 | git-lfs | Fixed | 0:3.6.1-4.el10_1 | RHSA-2025:23667 |
| Red Hat Enterprise Linux 9 | git-lfs | Fixed | 0:3.6.1-4.el9_7 | RHSA-2025:23744 |
| Red Hat Enterprise Linux 8 | git-lfs | Fixed | 0:3.4.1-6.el8_10 | RHSA-2025:23745 |
| AlmaLinux 10 | git-lfs | Fixed | 3.6.1-4.el10_1 | ALSA-2025:23667 |
| AlmaLinux 9 | git-lfs | Fixed | 3.6.1-4.el9_7 | ALSA-2025:23744 |
| AlmaLinux 8 | git-lfs | Fixed | 3.4.1-6.el8_10 | ALSA-2025:23745 |
| Rocky Linux 10 | git-lfs | Fixed | 0:3.6.1-4.el10_1 | RLSA-2025:23667 |
| Rocky Linux 9 | git-lfs | Fixed | 0:3.6.1-4.el9_7 | RLSA-2025:23744 |
| Rocky Linux 8 | git-lfs | Fixed | 0:3.4.1-6.el8_10 | RLSA-2025:23745 |
| Alpine Linux 3.24 | git-lfs | Fixed | 3.7.1-r0 | ALPINE-CVE-2025-26625 |
| Alpine Linux 3.23 | git-lfs | Fixed | 3.7.1-r0 | ALPINE-CVE-2025-26625 |
| Go library | github.com/git-lfs/git-lfs | Fixed | 3.7.1 | GHSA-6pvw-g552-53c5 |
| Go library | github.com/git-lfs/git-lfs/v3 | Fixed | 3.7.1 | GO-2025-4038 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- git-lfs: affected: >= 0.5.2, < 3.7.1
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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.