CVE-2025-26625
Git LFS may write to arbitrary files via crafted symlinks
Also known as BIT-git-lfs-2025-26625, GHSA-6pvw-g552-53c5, GO-2025-4038
Mitigation
- Upgrade github.com/git-lfs/git-lfs to 3.7.1 or later.
- Upgrade github.com/git-lfs/git-lfs/v3 to 3.7.1 or later.
Who should check
- Projects that depend on Go package github.com/git-lfs/git-lfs (>= 0.5.2, < 3.7.1)
- Projects that depend on Go package github.com/git-lfs/git-lfs/v3 (< 3.7.1)
- Anyone running git-lfs >= 0.5.2, < 3.7.1
Vulnerability facts
- Affected
- github.com/git-lfs/git-lfs >= 0.5.2, < 3.7.1; github.com/git-lfs/git-lfs/v3 < 3.7.1
- Fixed in
- 3.7.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.6 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: Passive
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 1.13% chance of exploitation in 30 days (percentile 66, 2026-11-26)
- CWE
- CWE-59
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/git-lfs/git-lfs | >= 0.5.2, < 3.7.1 | 3.7.1 | osv |
| Go github.com/git-lfs/git-lfs/v3 | < 3.7.1 | 3.7.1 | osv |
| git-lfs | >= 0.5.2, < 3.7.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-26625. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-26625.md Affected: github.com/git-lfs/git-lfs >= 0.5.2, < 3.7.1; github.com/git-lfs/git-lfs/v3 < 3.7.1 Fixed in: 3.7.1 Steps: 1. Search this machine and project for github.com/git-lfs/git-lfs (Go), github.com/git-lfs/git-lfs/v3 (Go), git-lfs: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2025-26625 being exploited?
There is no confirmed exploitation: CVE-2025-26625 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.13% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-26625?
High: CVSS 8.6 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2025-26625?
github.com/git-lfs/git-lfs >= 0.5.2, < 3.7.1; github.com/git-lfs/git-lfs/v3 < 3.7.1.
Is there a fix for CVE-2025-26625?
Yes. Fixed in 3.7.1. Upgrade github.com/git-lfs/git-lfs to 3.7.1 or later. Upgrade github.com/git-lfs/git-lfs/v3 to 3.7.1 or later.
How do I check if I'm affected by CVE-2025-26625?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.