{"id":"CVE-2025-26625","aliases":["CVE-2025-26625","GHSA-6pvw-g552-53c5","BIT-GIT-LFS-2025-26625","GO-2025-4038"],"related":[],"kind":"vulnerability","state":"published","title":"Git LFS may write to arbitrary files via crafted symlinks","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nWhen 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.\n\nGit LFS has resolved this problem by revising the `git lfs checkout` and `git lfs pull` commands so that they check for symbolic links in the same manner as performed by Git before writing to files in the working tree.  These commands now also remove existing files in the working tree before writing new files in their place.\n\nAs well, Git LFS has resolved a problem whereby the `git lfs checkout` and `git lfs pull` commands, when run in a bare repository, could write to files visible outside the repository.  While a specific and relatively unlikely set of conditions were required for this to occur, it is no longer possible under any circumstances.\n\n### Patches\n\nThis problem exists in all versions since 0.5.2 and is patched in v3.7.1.  All users should upgrade to v3.7.1.\n\n### Workarounds\n\nSupport 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.\n\n### References\n\n- https://github.com/git-lfs/git-lfs/security/advisories/GHSA-6pvw-g552-53c5\n- https://nvd.nist.gov/vuln/detail/CVE-2025-26625\n- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-26625\n- https://github.com/git-lfs/git-lfs/releases/tag/v3.7.1\n- [git-lfs/git-lfs@5c11ffce9a](https://github.com/git-lfs/git-lfs/commit/5c11ffce9a4f095ff356bc781e2a031abb46c1a8)\n- [git-lfs/git-lfs@0cffe93176](https://github.com/git-lfs/git-lfs/commit/0cffe93176b870055c9dadbb3cc9a4a440e98396)\n- [git-lfs/git-lfs@d02bd13f02](https://github.com/git-lfs/git-lfs/commit/d02bd13f02ef76f6807581cd6b34709069cb3615)\n\n### For more information\n\nIf there are any questions or comments about this advisory:\n* For general questions, start a discussion in the Git LFS [discussion forum](https://github.com/git-lfs/git-lfs/discussions).\n* For reports of additional vulnerabilities, please follow the Git LFS [security reporting policy](https://github.com/git-lfs/git-lfs/blob/main/SECURITY.md).","format":"markdown","source":"ghsa"},{"lang":"en","text":"Git LFS may write to arbitrary files via crafted symlinks in github.com/git-lfs/git-lfs","format":"markdown","source":"go"},{"lang":"es","text":"Git LFS es una extensión de Git para el control de versiones de archivos grandes. En las versiones de Git LFS de la 0.5.2 a la 3.7.0, al poblar el árbol de trabajo de un repositorio Git con el contenido de objetos Git LFS, ciertos comandos de Git LFS pueden escribir en archivos visibles fuera del árbol de trabajo de Git actual si existen enlaces simbólicos o duros que colisionan con las rutas de los archivos rastreados por Git LFS. Los comandos git lfs checkout y git lfs pull no verifican la existencia de enlaces simbólicos antes de escribir en archivos en el árbol de trabajo, permitiendo a un atacante crear un repositorio que contenga enlaces simbólicos o duros que hagan que Git LFS escriba en ubicaciones arbitrarias del sistema de archivos accesibles para el usuario que ejecuta estos comandos. Además, cuando los comandos git lfs checkout y git lfs pull se ejecutan en un repositorio bare, podrían escribir en archivos visibles fuera del repositorio. La vulnerabilidad está corregida en la versión 3.7.1. Como solución alternativa, el soporte para symlinks en Git puede deshabilitarse configurando la opción de configuración core.symlinks en false, después de lo cual las futuras clonaciones y recuperaciones no crearán enlaces simbólicos. Sin embargo, cualquier enlace simbólico o duro en los repositorios existentes aún proporcionará la oportunidad para que Git LFS escriba en sus destinos.","source":"nvd"}],"published":"2025-10-17T15:30:14.630Z","modified":"2026-10-22T09:00:04.202Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-59"],"affected":[{"ranges":[{"version":">= 0.5.2, < 3.7.1","status":"affected"}],"vendor":"git-lfs","product":"git-lfs","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.5.2","status":"affected","fixed":"3.7.1"}],"ecosystem":"Go","package":"github.com/git-lfs/git-lfs","purl":"pkg:golang/github.com/git-lfs/git-lfs","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.5.2","status":"affected"}],"ecosystem":"Go","package":"github.com/git-lfs/git-lfs","purl":"pkg:golang/github.com/git-lfs/git-lfs","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.7.1"}],"ecosystem":"Go","package":"github.com/git-lfs/git-lfs/v3","purl":"pkg:golang/github.com/git-lfs/git-lfs/v3","source":"go"},{"ranges":[{"type":"semver","introduced":"0.5.2","status":"affected","fixed":"3.7.1"}],"ecosystem":"Bitnami","package":"git-lfs","purl":"pkg:bitnami/git-lfs","source":"bitnami"}],"references":[{"url":"https://github.com/git-lfs/git-lfs/security/advisories/GHSA-6pvw-g552-53c5","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/git-lfs/git-lfs/commit/0cffe93176b870055c9dadbb3cc9a4a440e98396","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/git-lfs/git-lfs/commit/5c11ffce9a4f095ff356bc781e2a031abb46c1a8","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/git-lfs/git-lfs/commit/d02bd13f02ef76f6807581cd6b34709069cb3615","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/git-lfs/git-lfs/releases/tag/v3.7.1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2026/05/msg00055.html","tags":["web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2026/10/msg00040.html","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-26625","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-26625","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/git-lfs/git-lfs","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2025-10-17T15:44:04.948Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-26625","url":"https://www.cve.org/CVERecord?id=CVE-2025-26625","licence":"CVE Terms of Use","modified":"2026-10-21T10:07:30.375Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6pvw-g552-53c5","url":"https://github.com/advisories/GHSA-6pvw-g552-53c5","licence":"CC-BY-4.0","modified":"2026-05-31T18:45:14.086Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-4038","url":"https://pkg.go.dev/vuln/GO-2025-4038","licence":"CC-BY-4.0","modified":"2026-03-03T04:57:30.798Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-26625","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-26625","licence":"Public domain","modified":"2026-10-21T10:16:53.207Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GIT-LFS-2025-26625","url":"https://osv.dev/vulnerability/BIT-GIT-LFS-2025-26625","licence":"Apache-2.0","modified":"2026-10-22T09:00:04.202Z"}],"updatedAt":"2026-11-25T22:59:06.529Z","epss":{"score":0.01055,"percentile":0.65347,"date":"2026-12-01T12:00:22.000Z"}}