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
- Upgrade github.com/git-lfs/git-lfs/v3 to version 3.8.1.
- Disable fetch.recurseSubmodules and submodule.recurse configuration options and avoid running git submodule init as a workaround.
- Deactivate any already initialized submodules using the git submodule deinit command.
How to check your project
- Check Go dependency manifests (such as go.mod) for github.com/git-lfs/git-lfs or github.com/git-lfs/git-lfs/v3 within the affected version ranges (0.6.0 up to 2.13.3, and 3.0.0 up to 3.8.1).
Automated analysis of the published advisory data, generated 2026-11-27. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| 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 vector | Network |
|---|---|
| Attack complexity | Low |
| Attack requirements | None |
| Privileges required | None |
| User interaction | Passive |
| 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
References
- WEB https://github.com/git-lfs/git-lfs/security/advisories/GHSA-xrgv-7vx6-5vx6
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-105802
- WEB https://github.com/git-lfs/git-lfs/commit/1b2672aaa29016e8004369df1406d2a73057f45f
- WEB https://github.com/git-lfs/git-lfs/commit/39b73aa4db821fea6f0da8320128e5e1b919942d
- PACKAGE https://github.com/git-lfs/git-lfs
- WEB https://github.com/git-lfs/git-lfs/releases/tag/v3.8.1
Source records: GHSA-xrgv-7vx6-5vx6, GO-2026-7024 (OSV.dev) · EPSS by FIRST, 2026-11-27.