HIGH · CVSS 4.0 EPSS 0.6% · 43th percentile CWE-1286CWE-777

CVE-2026-105803: Git LFS may execute arbitrary commands via crafted Git LFS configurations

Published 2026-11-20 · Updated 2026-11-27 · Also known as BIT-git-lfs-2026-105803, GHSA-x72p-hmqp-46hw, GO-2026-7022

Summary

Git LFS fails to properly restrict configuration options in repository `.lfsconfig` files, allowing malicious repositories to execute arbitrary commands. All developers and administrators using affected versions of Git LFS should upgrade immediately.

Who is affected

Affected deployments include users of GitHub.com/git-lfs/git-lfs versions 1.3.0 through 2.13.3, and v3.x up to v3.8.0. An attacker can exploit this when a victim fetches objects from a malicious repository by leveraging key components that mimic custom object transfer command configurations.

Exploitability

The vulnerability has a CVSS 4.0 base score evaluated with network attack vector (AV:N), low attack complexity (AC:L), no attack requirements (AT:N), no privileges required (PR:N), and user interaction required (UI:P), resulting in high impacts to confidentiality and integrity (VC:H, VI:H). The EPSS score is 0.006 (433rd percentile), and it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-27. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Go github.com/git-lfs/git-lfs >= 1.3.0, <= 2.13.3 not published -
Go github.com/git-lfs/git-lfs >= 1.3.0 (no fix published) not published -
Go github.com/git-lfs/git-lfs/v3 >= 3.0.0, < 3.8.1 3.8.1 go get github.com/git-lfs/git-lfs/[email protected]

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

Attack vectorNetwork
Attack complexityLow
Attack requirementsNone
Privileges requiredNone
User interactionPassive
Confidentiality (vulnerable system)High
Integrity (vulnerable system)High
Availability (vulnerable system)None
Confidentiality (subsequent systems)None
Integrity (subsequent systems)None
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

What causes the vulnerability in Git LFS?

Git LFS does not correctly filter configuration options defined in repository `.lfsconfig` files if their keys contain certain additional components, allowing attackers to mimic custom object transfer commands.

Which versions of Git LFS are affected?

All versions since 1.3.0 up to 2.13.3, and v3.x versions prior to 3.8.1, are affected.

Is there a workaround if I cannot upgrade immediately?

No single workaround exists other than disabling Git LFS entirely and avoiding the cloning of repositories from untrusted sources.

Original advisory description
### Impact When fetching objects from a malicious repository, Git LFS may execute an arbitrary command or binary after failing to sufficiently restrict the set of configuration options defined in an `.lfsconfig` file in the repository. Git LFS permits a limited set of configuration options to be defined in an `.lfsconfig` file at the root of a Git repository, but does not filter these options correctly if their keys contain certain additional components, which allows an attacker to mimic options that configure Git LFS to use a custom command to transfer objects. An attacker can then provide an arbitrary command which Git LFS will invoke when fetching objects. Git LFS has resolved this issue by correctly restricting the configuration of custom object transfer commands to local Git configuration files. ### Patches This problem exists in all versions since 1.3.0 and is patched in v3.8.1. All users should upgrade to v3.8.1. ### Workarounds No single workaround exists other than to disable Git LFS entirely. As far as possible, users and administrators should avoid cloning repositories from untrusted sources. ### For more information If you have any questions or comments about this advisory: * For general questions, start a discussion in the Git LFS [discussion forum](https://github.com/git-lfs/git-lfs/discussions). * For reports of additional vulnerabilities, please follow the Git LFS [security reporting policy](https://github.com/git-lfs/git-lfs/blob/main/SECURITY.md).

References

Source records: GHSA-x72p-hmqp-46hw, GO-2026-7022 (OSV.dev) · EPSS by FIRST, 2026-11-27.