# CVE-2025-26625: Git LFS may write to arbitrary files via crafted symlinks

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.6
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.13% (percentile 66, 2026-11-26)
- **CWE:** CWE-59
- **Aliases:** BIT-git-lfs-2025-26625, GHSA-6pvw-g552-53c5, GO-2025-4038
- **Published:** 2025-10-17T15:30:14.630Z
- **Modified:** 2026-10-21T10:16:53.207Z

## 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

## 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

- Go `github.com/git-lfs/git-lfs`: affected \>= 0.5.2, \< 3.7.1; fixed 3.7.1 (osv)
- Go `github.com/git-lfs/git-lfs/v3`: affected \< 3.7.1; fixed 3.7.1 (osv)
- git-lfs: \>= 0.5.2, \< 3.7.1 (cvelist)

## 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/git-lfs/git-lfs/security/advisories/GHSA-6pvw-g552-53c5>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-26625>
- patch: <https://github.com/git-lfs/git-lfs/commit/0cffe93176b870055c9dadbb3cc9a4a440e98396>
- patch: <https://github.com/git-lfs/git-lfs/commit/5c11ffce9a4f095ff356bc781e2a031abb46c1a8>
- patch: <https://github.com/git-lfs/git-lfs/commit/d02bd13f02ef76f6807581cd6b34709069cb3615>
- other: <https://github.com/git-lfs/git-lfs/releases/tag/v3.7.1>
- other: <https://lists.debian.org/debian-lts-announce/2026/05/msg00055.html>
- other: <https://lists.debian.org/debian-lts-announce/2026/10/msg00040.html>
- other: <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-26625>
- other: <https://github.com/git-lfs/git-lfs>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-26625>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-6pvw-g552-53c5> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2025-4038> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-26625> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-26625>
