Read the docs

OS command injection in Git LFS via crafted SSH URLs

Priority LOW 37CWE-78Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01101 65th percentileScored 2026-11-30
Fix Partial git-lfs (git-lfs): 3.8.1github.com/git-lfs/git-lfs/v3 (Go): 3.8.1Red Hat: 1 advisoryRed Hat: 1 fixed, 3 without a fix

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

VendorProductAffected versionsFixed inStatusSource
git-lfsgit-lfs0.5.0 – 2.13.3; 3.0.0 to before 3.8.13.8.1Patch availableCNA
—github.com/git-lfs/git-lfs (Go)0.5.0 – 2.13.3—No fix listedGHSA-w3f2-pr6x-wwjc
—github.com/git-lfs/git-lfs/v3 (Go)3.0.0 to before 3.8.13.8.1Patch availableGHSA-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 Important
    Red 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 →

ProductStatusPlan or fix
Red Hat Enterprise Linux 10AffectedNo fix yet
Red Hat Enterprise Linux 8AffectedNo fix yet
Red Hat Enterprise Linux 9AffectedNo fix yet
Red Hat Hardened ImagesFixed RHSA-2026:91645

Timeline

  1. 2026-11-19 Threatist record created from CVE-2026-69260
  2. 2026-11-19 CISA SSVC decision points changed
  3. 2026-11-20 Affected versions changed · Red Hat
  4. 2026-11-20 CVSS score added · Red Hat
  5. 2026-11-20 Affected versions changed · Red Hat
  6. 2026-11-20 Alias added: GHSA-w3f2-pr6x-wwjc
  7. 2026-11-20 Fix available: Go/github.com/git-lfs/git-lfs/[email protected] · GHSA-w3f2-pr6x-wwjc
  8. 2026-11-20 CVSS score added · GHSA-w3f2-pr6x-wwjc
  9. 2026-11-20 Weakness changed · GHSA-w3f2-pr6x-wwjc
  10. 2026-11-20 8 new references · GHSA-w3f2-pr6x-wwjc
  11. 2026-11-23 Fix available: RHSA-2026:91645 · Red Hat
  12. 2026-11-23 Fix available: Red Hat Hardened Images · Red Hat

References

  • 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