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.
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.
Affected software
| Software | Affected versions |
|---|---|
github.com/git-lfs/git-lfsGo · osv:Go:github.com/git-lfs/git-lfs |
|
github.com/git-lfs/git-lfs/v3Go · osv:Go:github.com/git-lfs/git-lfs/v3 |
|
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
- CVE-2026-105803Git LFS may execute arbitrary commands via crafted Git LFS configurationsHigh 20 Nov 2026
- CVE-2026-69261Git LFS may leak HTTP headers after redirectionsHigh 20 Nov 2026
- CVE-2026-69260Git LFS may attempt arbitrary remote commands via crafted SSH URLsHigh 20 Nov 2026
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
- CVE-2026-105803Git LFS may execute arbitrary commands via crafted Git LFS configurationsHigh 20 Nov 2026
- CVE-2026-69261Git LFS may leak HTTP headers after redirectionsHigh 20 Nov 2026
- CVE-2026-69260Git LFS may attempt arbitrary remote commands via crafted SSH URLsHigh 20 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-105802
- GitHub Advisory Database https://github.com/advisories/GHSA-xrgv-7vx6-5vx6