p PatchFirst

CVE-2025-26625

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

CVSS 8.6 · High · EPSS 1.1% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • git-lfsNo fix published
  • git-lfs Alpine 3.23Update to 3.7.1-r0
  • git-lfs Alpine 3.24Update to 3.7.1-r0
  • git-lfs Debian 12Update to 3.3.0-1+deb12u2
  • and 7 more

Check the installed version:

apk list -I -o git-lfs
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="git-lfs"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • git-lfs

    Versions
    • >= 0.5.2, < 3.7.1: Affected

    No fix published

  • git-lfs Alpine 3.23

    Affected ranges
    • ECOSYSTEM: < 3.7.1-r0

    Update to 3.7.1-r0

  • git-lfs Alpine 3.24

    Affected ranges
    • ECOSYSTEM: < 3.7.1-r0

    Update to 3.7.1-r0

  • git-lfs Debian 12

    Versions
    • 3.3.0-1
    • 3.3.0-1+deb12u1
    Affected ranges
    • ECOSYSTEM: < 3.3.0-1+deb12u2

    Update to 3.3.0-1+deb12u2

  • git-lfs Debian 13

    Versions
    • 3.6.1-1
    Affected ranges
    • ECOSYSTEM: < 3.6.1-1+deb13u1

    Update to 3.6.1-1+deb13u1

  • git-lfs Debian 14

    Versions
    • 3.6.1-1
    Affected ranges
    • ECOSYSTEM: < 3.7.1-1

    Update to 3.7.1-1

  • git-lfs Ubuntu Pro 18.04 LTS

    Versions
    • 2.2.1-1
    • 2.3.3-1
    • 2.3.4-1
    • 2.3.4-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • git-lfs Ubuntu Pro 20.04 LTS

    Versions
    • 2.8.0-4
    • 2.9.0-1
    • 2.9.1-1
    • 2.9.2-1
    • 2.9.2-1ubuntu0.1~esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • git-lfs Ubuntu 22.04 LTS

    Versions
    • 2.13.2-1
    • 3.0.2-1
    • 3.0.2-1ubuntu0.1
    • 3.0.2-1ubuntu0.2
    • 3.0.2-1ubuntu0.3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • git-lfs Ubuntu Pro 24.04 LTS

    Versions
    • 3.4.0-1build1
    • 3.4.1-1
    • 3.4.1-1ubuntu0.1
    • 3.4.1-1ubuntu0.2
    • 3.4.1-1ubuntu0.2+esm1
    • 3.4.1-1ubuntu0.3
    All versions (7)
    • 3.4.1-1ubuntu0.3+esm1
    Affected ranges
    • ECOSYSTEM: < 3.4.1-1ubuntu0.3+esm2

    Update to 3.4.1-1ubuntu0.3+esm2

  • git-lfs Ubuntu 25.10

    Versions
    • 3.6.1-1
    Affected ranges
    • ECOSYSTEM: < 3.6.1-1ubuntu0.1

    Update to 3.6.1-1ubuntu0.1

Original sources

Check your server →