Git LFSに任意のコマンドを実行される脆弱性
Summary
Git LFSの0.6.0から3.8.1までの版には、サブモジュールのGit設定値に含まれる改行などの制御文字を検査しない脆弱性があり、細工されたリポジトリにより攻撃者が指定したコマンドやバイナリが実行されるおそれがあります。CVSS v4.0の基本スコアは8.6です。3.8.1で修正されているため、3.8.1以降へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Git LFSの0.6.0から3.8.1までの版には、サブモジュールのGit設定値に含まれる改行などの制御文字を検査しない脆弱性があり、細工されたリポジトリにより攻撃者が指定したコマンドやバイナリが実行されるおそれがあります。CVSS v4.0の基本スコアは8.6です。3.8.1で修正されているため、3.8.1以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| git-lfsgit-lfs | — | Not listed |
| Gogithub.com/git-lfs/git-lfs |
0.6.0 – 2.13.3→ Not listed |
Not listed |
| Gogithub.com/git-lfs/git-lfs/v3 |
≥ 3.0.0, < 3.8.1→ 3.8.1 |
3.8.1 |
| Bitnamigit-lfs |
≥ 0.6.0, < 3.8.1→ 3.8.1 |
3.8.1 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-105802 git-lfs Fix available
- Ubuntu UBUNTU-CVE-2026-105802 git-lfs No fixed version in this record
Original description The description as published by the source.
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.
- For reports of additional vulnerabilities, please follow the Git LFS security reporting policy.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com