HIGH · CVSS 4.0 EPSS 0.5% · 38th percentile CWE-144

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

Published 2026-11-20 · Updated 2026-11-27 · Also known as BIT-git-lfs-2026-105802, GHSA-xrgv-7vx6-5vx6, GO-2026-7024

Summary

Git LFS improperly parses Git configuration options containing embedded line-ending control characters, allowing arbitrary command execution when fetching objects from a malicious repository. All users of affected Git LFS versions should upgrade to the patched release.

Who is affected

Affected deployments include users running vulnerable versions of github.com/git-lfs/git-lfs (v3.0.0 through versions prior to 3.8.1, as well as versions from 0.6.0 upwards). An attacker can achieve arbitrary command or binary execution by embedding line feed control characters into Git configuration values for submodules, which requires a user to fetch objects from a malicious repository.

Exploitability

The vulnerability carries a high severity CVSS 4.0 base score vector of AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N, indicating network attack vector with low complexity, no attack privileges, and required user interaction. The current EPSS score is 0.005 (percentile 0.381), and it is not present in the CISA Known Exploited Vulnerabilities list.

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 >= 0.6.0, <= 2.13.3 not published -
Go github.com/git-lfs/git-lfs >= 0.6.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 arbitrary command execution in Git LFS?

Git LFS reads Git configuration options without checking for embedded line-ending control characters, allowing attackers to inject line feeds to mimic options that trigger command execution.

Which versions of Git LFS are affected?

All versions since 0.6.0 up to 2.13.3, and versions in the v3 range from 3.0.0 up to 3.8.0 are affected.

Is there a workaround if I cannot upgrade immediately?

Yes, you can disable fetch.recurseSubmodules and submodule.recurse options, never run git submodule init, and deinit any existing submodules using git submodule deinit.

Original advisory description
### Impact When fetching objects from a malicious repository, Git LFS may execute an arbitrary command or binary after incorrectly parsing the Git configuration options defined for a submodule. Git LFS reads Git configuration options without checking for embedded line-ending control characters. By inserting control characters such as line feed (LF) into certain values, an attacker may be able to mimic options that cause Git LFS to execute an arbitrary command when fetching or adding objects. Git LFS has resolved this issue by always using an unambiguous format to read and parse Git configuration options. ### Patches This problem exists in all versions since 0.6.0 and is patched in v3.8.1. All users should upgrade to v3.8.1. ### Workarounds To work around the problem, users should prevent Git from initializing any submodules by disabling the `fetch.recurseSubmodules` and `submodule.recurse` configuration options and by never running the `git submodule init` command. Any submodules which have already been initialized in a repository may be deactivated with the `git submodule deinit` command. ### 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-xrgv-7vx6-5vx6, GO-2026-7024 (OSV.dev) · EPSS by FIRST, 2026-11-27.