All vulnerabilities

Go

CVE-2026-105802

Git LFS may execute arbitrary commands via crafted Git configurations

Severity
High
Published
20 Nov 2026
Last changed
20 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
3.8.1
Exploit chance
0.6% in the next 30 daysHigher than 47% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
CWE-144
Also known as
GHSA-xrgv-7vx6-5vx6
Sources
OSV.dev and GitHub

Description

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.

From the GitHub Advisory Database, CC BY 4.0.

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.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
github.com/git-lfs/git-lfsGo · osv:Go:github.com/git-lfs/git-lfs
  • From 0.6.0 up to 2.13.3
github.com/git-lfs/git-lfs/v3Go · osv:Go:github.com/git-lfs/git-lfs/v3
  • From 3.0.0 before 3.8.1

About github.com/git-lfs/git-lfs

Vulnerabilities in github.com/git-lfs/git-lfs

In our list
4
Published in the last 12 months
4
Critical, last 12 months
0
High, last 12 months
4
Known exploited
0
Search the list for github.com/git-lfs/git-lfs

About github.com/git-lfs/git-lfs/v3

Vulnerabilities in github.com/git-lfs/git-lfs/v3

In our list
4
Published in the last 12 months
4
Critical, last 12 months
0
High, last 12 months
4
Known exploited
0
Search the list for github.com/git-lfs/git-lfs/v3

References