Git LFS can run attacker commands through crafted Git configuration
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
Git LFS from 0.6.0 through 2.13.3 and from 3.0.0 before 3.8.1 reads Git configuration options for a submodule without checking for embedded line-ending control characters (CWE-144). A malicious repository can insert a line feed into those values to mimic options that make Git LFS run an attacker-controlled command while fetching or adding objects. Exploitation requires a user to interact with the malicious repository.
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| git-lfs | git-lfs | 0.6.0 – 2.13.3; 3.0.0 to before 3.8.1 | 3.8.1 | Patch available | CNA |
| — | github.com/git-lfs/git-lfs (Go) | 0.6.0 – 2.13.3 | — | No fix listed | GHSA-xrgv-7vx6-5vx6 |
| — | github.com/git-lfs/git-lfs/v3 (Go) | 3.0.0 to before 3.8.1 | 3.8.1 | Patch available | GHSA-xrgv-7vx6-5vx6 |
- git-lfs Vendorgit-lfs Affected 0.6.0 – 2.13.3; 3.0.0 to before 3.8.1 Fixed in 3.8.1 Patch available CNA
- github.com/git-lfs/git-lfs (Go) Vendor— Affected 0.6.0 – 2.13.3 Fixed in — No fix listed GHSA-xrgv-7vx6-5vx6
- github.com/git-lfs/git-lfs/v3 (Go) Vendor— Affected 3.0.0 to before 3.8.1 Fixed in 3.8.1 Patch available GHSA-xrgv-7vx6-5vx6
Remediation
Upgrade git-lfs to version 3.8.1 and github.com/git-lfs/git-lfs/v3 to version 3.8.1. The sources list no fixed version for github.com/git-lfs/git-lfs.
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
- Fix · CNA git-lfs (git-lfs) Fixed in 3.8.1
- Fix · GHSA-xrgv-7vx6-5vx6 github.com/git-lfs/git-lfs/v3 (Go) Fixed in 3.8.1 Advisory →
Timeline
- 2026-11-19 Threatist record created from CVE-2026-105802
- 2026-11-20 Alias added: GHSA-xrgv-7vx6-5vx6
- 2026-11-20 Fix available: Go/github.com/git-lfs/git-lfs/[email protected] · GHSA-xrgv-7vx6-5vx6
- 2026-11-20 CVSS score added · GHSA-xrgv-7vx6-5vx6
- 2026-11-20 Weakness changed · GHSA-xrgv-7vx6-5vx6
- 2026-11-20 6 new references · GHSA-xrgv-7vx6-5vx6
- 2026-11-20 CISA SSVC decision points changed
References
Other 5
- 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/git-lfs/git-lfs
More git-lfs vulnerabilities
- TI-2025-19562 Git LFS may write to arbitrary files via crafted symlinks CVSS 4.0HIGH 8.6
- TI-2024-35726 Git LFS permits exfiltration of credentials via crafted HTTP URLs CVSS 4.0HIGH 8.5
- TI-2026-95004 Command execution in Git LFS via crafted .lfsconfig keys CVSS 4.0HIGH 8.6
- TI-2026-94996 OS command injection in Git LFS via crafted SSH URLs CVSS 4.0HIGH 7.6
- TI-2026-95001 Git LFS forwards cookies to other hosts after HTTP redirects CVSS 4.0HIGH 7.6
Sources
- CVE-2026-105802 · CVE Program
- CVE-2026-105802 · NVD
- FIRST EPSS
- GHSA-xrgv-7vx6-5vx6 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences