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

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.05%, higher than 65% of CVEs (2026-12-01)
- Published: 2025-10-17T15:30:14.630Z
- Modified: 2026-10-22T09:00:04.202Z
- Also known as: GHSA-6pvw-g552-53c5, BIT-GIT-LFS-2025-26625, GO-2025-4038
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- git-lfs git-lfs: >= 0.5.2, < 3.7.1
- github.com/git-lfs/git-lfs (Go): from 0.5.2 before 3.7.1; from 0.5.2
- github.com/git-lfs/git-lfs/v3 (Go): before 3.7.1
- git-lfs (Bitnami): from 0.5.2 before 3.7.1

## Every score

- GitHub_M: CVSS:4.0 8.6 High `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`
- GitHub: CVSS:4.0 High `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`
- Bitnami Vulnerability Database: rating High

## References

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

## Sources

- CVE List: [CVE-2025-26625](https://www.cve.org/CVERecord?id=CVE-2025-26625), CVE Terms of Use, modified 2026-10-21
- GitHub Advisory Database: [GHSA-6pvw-g552-53c5](https://github.com/advisories/GHSA-6pvw-g552-53c5), CC-BY-4.0, modified 2026-05-31
- Go Vulnerability Database: [GO-2025-4038](https://pkg.go.dev/vuln/GO-2025-4038), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2025-26625](https://nvd.nist.gov/vuln/detail/CVE-2025-26625), Public domain, modified 2026-10-21
- Bitnami Vulnerability Database: [BIT-GIT-LFS-2025-26625](https://osv.dev/vulnerability/BIT-GIT-LFS-2025-26625), Apache-2.0, modified 2026-10-22

---

Page: https://cve.day/CVE-2025-26625 · Whole record: https://cve.day/CVE-2025-26625.json · Rebuilt by cve.day 2026-11-25T22:59:06.529Z
