cve.bz

CVE-2025-26625 git-lfs git-lfs: Link Following

8.6 highEPSS 1.1%Fix available

High (8.6) in git-lfs git-lfs. EPSS 1.1% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/git-lfs/git-lfs 3.7.1.

On this page
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.

Severity

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
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 65th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2025-10-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • github.com/git-lfs/git-lfs (Go): fixed in 3.7.1
  • github.com/git-lfs/git-lfs/v3 (Go): fixed in 3.7.1
  • Debian, Ubuntu, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Alpine: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2025-26625 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-26625?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-26625?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-26625 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
git-lfs>= 0.5.2, < 3.7.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6pvw-g552-53c5Gogithub.com/git-lfs/git-lfs>=0.5.2 <3.7.13.7.1
GO-2025-4038Gogithub.com/git-lfs/git-lfs>=0.5.2no fix published
GO-2025-4038Gogithub.com/git-lfs/git-lfs/v3<3.7.13.7.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11git-lfs2.13.2-1+deb11u2DLA-4610-1
Debian12git-lfs3.3.0-1+deb12u2DEBIAN-CVE-2025-26625 DLA-4846-1
Debian13git-lfs3.6.1-1+deb13u1DEBIAN-CVE-2025-26625
Debian14git-lfs3.7.1-1DEBIAN-CVE-2025-26625
Ubuntu22.04:LTS, Pro:18.04:LTS, Pro:20.04:LTSgit-lfsno fix listedUBUNTU-CVE-2025-26625 USN-7977-1
Ubuntu25.10git-lfs3.6.1-1ubuntu0.1UBUNTU-CVE-2025-26625 USN-7977-1
UbuntuPro:22.04:LTSgit-lfs3.0.2-1ubuntu0.3+esm2USN-7977-1
UbuntuPro:24.04:LTSgit-lfs3.4.1-1ubuntu0.3+esm2UBUNTU-CVE-2025-26625 USN-7977-1
Red Hatenterprise_linux:8::appstreamgit-lfs, git-lfs-debuginfo, git-lfs-debugsource0:3.4.1-6.el8_10RHSA-2025:23745
Red Hatenterprise_linux:9::appstreamgit-lfs, git-lfs-debuginfo, git-lfs-debugsource0:3.6.1-4.el9_7RHSA-2025:23744
Red Hatenterprise_linux:10.1git-lfs, git-lfs-debuginfo, git-lfs-debugsource0:3.6.1-4.el10_1RHSA-2025:23667
Red Hatenterprise_linux_eus:10.0git-lfs, git-lfs-debuginfo, git-lfs-debugsource0:3.6.1-2.el10_0.1RHSA-2026:0224
Red Hatenterprise_linux_eus:10.0ruby, ruby-doc, ruby-libs and 7 more0:3.3.10-11.el10_0RHSA-2025:23927
Red Hatenterprise_linux_eus:10.0rubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.1.5-11.el10_0RHSA-2025:23927
Red Hatenterprise_linux_eus:10.0rubygem-bundler0:2.5.22-11.el10_0RHSA-2025:23927
Red Hatenterprise_linux_eus:10.0rubygem-io-console, rubygem-io-console-debuginfo0:0.7.1-11.el10_0RHSA-2025:23927
Red Hatenterprise_linux_eus:10.0rubygem-irb0:1.13.1-11.el10_0RHSA-2025:23927
Red Hatenterprise_linux_eus:10.0rubygem-json, rubygem-json-debuginfo0:2.7.2-11.el10_0RHSA-2025:23927
Red Hatenterprise_linux_eus:10.0rubygem-minitest0:5.20.0-11.el10_0RHSA-2025:23927
Red Hatenterprise_linux_eus:10.0rubygem-power_assert0:2.0.3-11.el10_0RHSA-2025:23927
37 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6git-lfs3.7.1-150600.13.6.1SUSE-SU-2026:3801-1
openSUSELeap 16.0git-lfs3.7.1-bp160.1.1openSUSE-SU-2026:21621-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1
openSUSETumbleweedgit-lfs3.7.1-1.1openSUSE-SU-2025:15643-1
openSUSETumbleweedgovulncheck-vulndb0.0.20251105T184115-1.1openSUSE-SU-2025:15710-1
AlmaLinux8git-lfs3.4.1-6.el8_10ALSA-2025:23745
AlmaLinux9git-lfs3.6.1-4.el9_7ALSA-2025:23744
AlmaLinux10git-lfs3.6.1-4.el10_1ALSA-2025:23667
Rocky Linux8git-lfs0:3.4.1-6.el8_10RLSA-2025:23745
Rocky Linux9git-lfs0:3.6.1-4.el9_7RLSA-2025:23744
Rocky Linux10git-lfs0:3.6.1-4.el10_1RLSA-2025:23667
Alpinev3.23, v3.24git-lfs3.7.1-r0ALPINE-CVE-2025-26625

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability can cause Git LFS to write to arbitrary file system locations accessible to the user running git lfs checkout and git lfs pull. These commands are typically run by regular users without special access to system files, limiting the impact of this issue.

Red Hat's mitigation

To prevent the creation of symbolic links when cloning or fetching a repository, the core.symlinks configuration option can be set to false, mitigating this vulnerability for new repositories. However, existing repositories containing symbolic or hard links are still vulnerable to this issue.

Use the following command to set the core.symlinks configuration option to false:

~~~

git config --global core.symlinks false

~~~

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10git-lfs-0:3.6.1-4.el10_1Fixed 2025-12-18RHSA-2025:23667
Red Hat Enterprise Linux 10.0 Extended Update Supportruby-0:3.3.10-11.el10_0Fixed 2025-12-22RHSA-2025:23927
Red Hat Enterprise Linux 10.0 Extended Update Supportgit-lfs-0:3.6.1-2.el10_0.1Fixed 2026-01-07RHSA-2026:0224
Red Hat Enterprise Linux 8git-lfs-0:3.4.1-6.el8_10Fixed 2025-12-22RHSA-2025:23745
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportgit-lfs-0:2.13.3-3.el8_4.3Fixed 2026-01-12RHSA-2026:0459
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Ongit-lfs-0:2.13.3-3.el8_4.3Fixed 2026-01-12RHSA-2026:0459
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportgit-lfs-0:2.13.3-3.el8_6.5Fixed 2026-01-12RHSA-2026:0465
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicegit-lfs-0:2.13.3-3.el8_6.5Fixed 2026-01-12RHSA-2026:0465
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionsgit-lfs-0:2.13.3-3.el8_6.5Fixed 2026-01-12RHSA-2026:0465
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicegit-lfs-0:3.2.0-2.el8_8.5Fixed 2026-01-12RHSA-2026:0460
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsgit-lfs-0:3.2.0-2.el8_8.5Fixed 2026-01-12RHSA-2026:0460
Red Hat Enterprise Linux 9git-lfs-0:3.6.1-4.el9_7Fixed 2025-12-22RHSA-2025:23744
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionsgit-lfs-0:2.13.3-5.el9_0.5Fixed 2026-01-12RHSA-2026:0472
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsgit-lfs-0:3.2.0-2.el9_2.4Fixed 2026-01-07RHSA-2026:0203
Red Hat Enterprise Linux 9.4 Extended Update Supportgit-lfs-0:3.4.1-4.el9_4.3Fixed 2026-01-07RHSA-2026:0204
Red Hat Enterprise Linux 9.6 Extended Update Supportruby:3.3-9060020251210162455.9Fixed 2025-12-18RHSA-2025:23648
Red Hat Enterprise Linux 9.6 Extended Update Supportgit-lfs-0:3.6.1-2.el9_6.1Fixed 2026-01-07RHSA-2026:0199

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-26625.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON