OS command injection in Git LFS via crafted SSH URLs
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Partial Red Hat: 1 fixed, 3 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-78.
Summary
Git LFS from 0.5.0 through 2.13.3 and from 3.0.0 before 3.8.1 does not format the SSH URL path as a single argument when it builds remote commands. Shell metacharacters in an SSH URL can escape that argument (CWE-78), so arbitrary commands run when the remote Git LFS service passes received commands to a shell without adequate sanitization. Exploitation requires user interaction.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
Description from the CNA
Git LFS is a Git extension for versioning large files. From 0.5.0 until 3.8.1, Git LFS does not format the SSH URL path component as a single argument when constructing remote object-transfer or authentication commands. Shell metacharacters in the SSH URL can therefore escape the intended path argument and cause arbitrary command execution when the remote Git LFS service passes received commands to a shell without adequate sanitization. Git LFS also incorrectly encodes default HTTPS URLs when an SSH URL is configured and the remote host either does not support Git LFS remote commands over SSH or supports HTTP authentication over SSH but git-lfs-authenticate does not return an explicit HTTP URL. 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.5.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.5.0 – 2.13.3 | — | No fix listed | GHSA-w3f2-pr6x-wwjc |
| — | github.com/git-lfs/git-lfs/v3 (Go) | 3.0.0 to before 3.8.1 | 3.8.1 | Patch available | GHSA-w3f2-pr6x-wwjc |
- git-lfs Vendorgit-lfs Affected 0.5.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.5.0 – 2.13.3 Fixed in — No fix listed GHSA-w3f2-pr6x-wwjc
- 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-w3f2-pr6x-wwjc
Remediation
Upgrade git-lfs and the github.com/git-lfs/git-lfs/v3 Go module to 3.8.1. Red Hat fixes Red Hat Hardened Images in RHSA-2026:91645. Red Hat Enterprise Linux 8, 9 and 10 are affected, and Red Hat's plan for them is none available. 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-23
- Fix · CNA git-lfs (git-lfs) Fixed in 3.8.1
- Fix · GHSA-w3f2-pr6x-wwjc github.com/git-lfs/git-lfs/v3 (Go) Fixed in 3.8.1 Advisory →
Red Hat 1 advisory
- RHSA-2026:91645 Released 2026-10-28 · Red Hat rating ImportantRed Hat Hardened Images RPMs Security Update
- Red Hat Hardened Images git-lfs-3.8.1-0.2.hum1@aarch64, git-lfs-3.8.1-0.2.hum1@s390x, git-lfs-3.8.1-0.2.hum1@src +1
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 10 | Affected | No fix yet |
| Red Hat Enterprise Linux 8 | Affected | No fix yet |
| Red Hat Enterprise Linux 9 | Affected | No fix yet |
| Red Hat Hardened Images | Fixed | RHSA-2026:91645 |
Timeline
- 2026-11-19 Threatist record created from CVE-2026-69260
- 2026-11-19 CISA SSVC decision points changed
- 2026-11-20 Affected versions changed · Red Hat
- 2026-11-20 CVSS score added · Red Hat
- 2026-11-20 Affected versions changed · Red Hat
- 2026-11-20 Alias added: GHSA-w3f2-pr6x-wwjc
- 2026-11-20 Fix available: Go/github.com/git-lfs/git-lfs/[email protected] · GHSA-w3f2-pr6x-wwjc
- 2026-11-20 CVSS score added · GHSA-w3f2-pr6x-wwjc
- 2026-11-20 Weakness changed · GHSA-w3f2-pr6x-wwjc
- 2026-11-20 8 new references · GHSA-w3f2-pr6x-wwjc
- 2026-11-23 Fix available: RHSA-2026:91645 · Red Hat
- 2026-11-23 Fix available: Red Hat Hardened Images · Red Hat
References
Other 7
- https://github.com/git-lfs/git-lfs/security/advisories/GHSA-w3f2-pr6x-wwjc
- https://github.com/git-lfs/git-lfs/commit/091a95a796739bd0b8f59d8deeea79a452959508
- https://github.com/git-lfs/git-lfs/commit/92d81117d465469a61dcb78546dd3d88806b25fd
- https://github.com/git-lfs/git-lfs/commit/af5f4579ac1155734bb08f00ca92b9e89f8b51df
- https://github.com/git-lfs/git-lfs/commit/d90ed66f2d465f8b3ba5fd6e4ac3c711c9e0a2d6
- 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-95003 Git LFS can run attacker commands through crafted Git configuration CVSS 4.0HIGH 8.6
- TI-2026-95001 Git LFS forwards cookies to other hosts after HTTP redirects CVSS 4.0HIGH 7.6
Sources
- CVE-2026-69260 · CVE Program
- CVE-2026-69260 · NVD
- FIRST EPSS
- GHSA-w3f2-pr6x-wwjc · GitHub Advisory Database · CC BY 4.0
- CVE-2026-69260 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences