Skip to content
Heist/ feed
Back to feed
HighFix available

Git LFS may write to arbitrary files via crafted symlinks

Type: advisorySources: OSV

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.

Products
git-lfs
Affected versions
Not specified
Fixed versions
3.7.1
CVEs
CVE-2025-26625
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 17:58 UTC · Revision 1

Source evidence

Git LFS may write to arbitrary files via crafted symlinks

core-osv · Original source

Published 21 Oct 2025, 08:40 UTC

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.

osv:BIT-git-lfs-2025-26625

git-lfs

Fixed versions: 3.7.1

Complete source record
{
  "id": "7e602e1d0f0b1f8f9114824b48f9991fca7f5b07ace7d2d06d7eedbeb6dad7fc",
  "url": "https://osv.dev/vulnerability/BIT-git-lfs-2025-26625",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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.",
    "evidence": "osv:BIT-git-lfs-2025-26625",
    "products": [
      {
        "name": {
          "value": "git-lfs",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.7.1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "BIT-git-lfs-2025-26625",
      "aliases": [
        "BIT-git-lfs-2025-26625",
        "CVE-2025-26625",
        "GHSA-6pvw-g552-53c5",
        "GO-2025-4038"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0.5.2"
                },
                {
                  "fixed": "3.7.1"
                }
              ]
            }
          ],
          "package": {
            "name": "git-lfs",
            "purl": "pkg:bitnami/git-lfs",
            "ecosystem": "Bitnami"
          },
          "severity": [
            {
              "type": "CVSS_V4",
              "score": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
            }
          ],
          "database_specific": {
            "source": "https://github.com/bitnami/vulndb/tree/main/data/git-lfs/BIT-git-lfs-2025-26625.json"
          }
        }
      ],
      "modified": "2026-10-22T09:00:04.202801094Z",
      "provider": "osv",
      "references": [
        "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",
        "https://github.com/git-lfs/git-lfs/security/advisories/GHSA-6pvw-g552-53c5",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-26625",
        "https://lists.debian.org/debian-lts-announce/2026/05/msg00055.html",
        "https://lists.debian.org/debian-lts-announce/2026/10/msg00040.html"
      ],
      "provider_metadata": {
        "cpes": [
          "cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:*:*:*:*:*:go:*:*"
        ],
        "severity": "High"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-26625",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/database_specific/severity"
  },
  "source_id": "core-osv",
  "document_id": 405345,
  "published_at": "2025-10-21T08:40:06.664+00:00"
}