CVE-2026-105802
Git LFS may execute arbitrary commands via crafted Git configurations
Impact
Git LFS is a Git extension for versioning large files. From 0.6.0 until 3.8.1, Git LFS reads Git configuration options defined for a submodule without checking certain values for embedded line-ending control characters. A malicious repository can insert control characters such as line feed (LF) into those values to mimic options that cause Git LFS to execute an attacker-controlled command or binary while fetching or adding objects. This issue is fixed in version 3.8.1.
An attacker can exploit this over the network, without logging in, but a user has to be involved, for example by viewing content. If it succeeds: high risk of data being read, high risk of data or systems being changed.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | github.com/git-lfs/git-lfs | >= 0.6.0, <= 2.13.3 | none recorded |
| go | github.com/git-lfs/git-lfs/v3 | >= 3.0.0, < 3.8.1 | 3.8.1 |
Affected products · Git-lfs
| Product | Affected versions |
|---|---|
| Git-lfs | from 3.0.0, before 3.8.1 Versions >= 0.6.0, <= 2.13.3, 0.6.0, ≤ 2.13.3 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/git-lfs/git-lfs/security/advisories/GHSA-xrgv-7vx6-5vx6
- https://github.com/git-lfs/git-lfs/commit/1b2672aaa29016e8004369df1406d2a73057f45f
- https://github.com/git-lfs/git-lfs/commit/39b73aa4db821fea6f0da8320128e5e1b919942d
- https://github.com/git-lfs/git-lfs/releases/tag/v3.8.1
- https://github.com/advisories/GHSA-xrgv-7vx6-5vx6
- https://nvd.nist.gov/vuln/detail/CVE-2026-105802