CVE-2026-69260: Github.com/git lfs/git lfs Git LFS May Attempt Arbitrary Vulnerability

HIGH
Advisory Identifier: GHSA-w3f2-pr6x-wwjc
CWE-78
Published
Advisory Summary

CVE-2026-69260 is a HIGH git lfs may attempt arbitrary vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Github.com/git lfs/git lfs libraries in the Go ecosystem. The issue involves git lfs may attempt arbitrary remote commands via crafted ssh urls. Remediation is available by upgrading affected packages to version 3.8.1.

CVE-2026-69260 at a Glance

CVE Identifier CVE-2026-69260
GHSA Identifier GHSA-w3f2-pr6x-wwjc
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product Github.com/git lfs/git lfs
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2026-69260

To remediate this vulnerability, upgrade all affected Github.com/git lfs/git lfs dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/git-lfs/git-lfs fixed: Latest secure release
Upgrade github.com/git-lfs/git-lfs to Latest secure release
github.com/git-lfs/git-lfs/v3 fixed: 3.8.1
Upgrade github.com/git-lfs/git-lfs/v3 to 3.8.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/git-lfs/git-lfs

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-69260, inspect your project dependencies for Github.com/git lfs/git lfs:

inspect dependencies for github.com/git-lfs/git-lfs

Analyze the terminal output to locate any version of Github.com/git lfs/git lfs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.8.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Github.com/git lfs/git lfs, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact When Git LFS makes object transfer or authentication requests to a remote host via SSH, it passes the path component of the remote's SSH URL as part of a command to be executed, but does not properly format the URL's path component as a single argument. By inserting shell meta-characters into the SSH URL, an attacker may be able to execute arbitrary commands on the remote host, if the host passes the commands to a shell without sanitizing them first. Git LFS has resolved this problem by fully quoting the arguments of the remote commands it sends via SSH. As well, Git LFS has resolved a problem with the default HTTPS URLs used when an SSH URL is configured for a remote host and the host either does not support Git LFS remote commands sent via SSH or supports HTTP authentication via SSH for Git LFS but does not return an explicit HTTP URL in response to a `git-lfs-authenticate` remote command. In these cases, Git LFS now correctly encodes the HTTPS URL used to contact the remote host. ### Patches This problem exists in all versions since 0.5.0 and is patched in v3.8.1. All users should upgrade to v3.8.1. ### Workarounds Users may set the `lfs.sshTransfer` Git configuration option to `never`, after which Git LFS will not attempt any object transfers over SSH. However, Git LFS will still make authentication requests to SSH URLs, so administrators of Git LFS services should ensure their systems sanitize all commands received over SSH before executing them.

CVE-2026-69260 Affected Github.com/git lfs/git lfs Versions

2 component(s)
Fixed Versions:
3.8.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/git-lfs/git-lfs
Go
≥ 0.5.0
≤ 2.13.3
github.com/git-lfs/git-lfs/v3
Go
≥ 3.0.0
< 3.8.1
3.8.1

References

Frequently Asked Questions

What is CVE-2026-69260?
CVE-2026-69260 is a security vulnerability in Github.com/git lfs/git lfs involving Git LFS may attempt arbitrary remote commands via crafted SSH URLs under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which Github.com/git lfs/git lfs versions are affected?
Affected versions include releases prior to 3.8.1 across affected packages: github.com/git-lfs/git-lfs, github.com/git-lfs/git-lfs/v3.
What version fixes CVE-2026-69260?
Upgrading to 3.8.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/git-lfs/git-lfs affected?
Yes, github.com/git-lfs/git-lfs is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
Is github.com/git-lfs/git-lfs/v3 affected?
Yes, github.com/git-lfs/git-lfs/v3 is affected in releases prior to 3.8.1. Upgrade your dependency to 3.8.1 or later.
What CWE is associated with CVE-2026-69260?
CVE-2026-69260 is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.).
How can I check Go dependencies for CVE-2026-69260?
Run the dependency tree command: 'inspect dependencies for github.com/git-lfs/git-lfs'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-w3f2-pr6x-wwjc",
  "modified" : "2026-11-20T14:47:01Z",
  "published" : "2026-11-20T14:47:01Z",
  "aliases" : [ "CVE-2026-69260" ],
  "summary" : "Git LFS may attempt arbitrary remote commands via crafted SSH URLs",
  "details" : "### Impact\n\nWhen Git LFS makes object transfer or authentication requests to a remote host via SSH, it passes the path component of the remote's SSH URL as part of a command to be executed, but does not properly format the URL's path component as a single argument.  By inserting shell meta-characters into the SSH URL, an attacker may be able to execute arbitrary commands on the remote host, if the host passes the commands to a shell without sanitizing them first.\n\nGit LFS has resolved this problem by fully quoting the arguments of the remote commands it sends via SSH.\n\nAs well, Git LFS has resolved a problem with the default HTTPS URLs used when an SSH URL is configured for a remote host and the host either does not support Git LFS remote commands sent via SSH or supports HTTP authentication via SSH for Git LFS but does not return an explicit HTTP URL in response to a `git-lfs-authenticate` remote command.  In these cases, Git LFS now correctly encodes the HTTPS URL used to contact the remote host.\n\n### Patches\n\nThis problem exists in all versions since 0.5.0 and is patched in v3.8.1. All users should upgrade to v3.8.1.\n\n### Workarounds\n\nUsers may set the `lfs.sshTransfer` Git configuration option to `never`, after which Git LFS will not attempt any object transfers over SSH.  However, Git LFS will still make authentication requests to SSH URLs, so administrators of Git LFS services should ensure their systems sanitize all commands received over SSH before executing them.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/git-lfs/git-lfs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.5.0"
      }, {
        "last_affected" : "2.13.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/git-lfs/git-lfs/v3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.8.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/git-lfs/git-lfs/security/advisories/GHSA-w3f2-pr6x-wwjc"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-69260"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/git-lfs/git-lfs/commit/091a95a796739bd0b8f59d8deeea79a452959508"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/git-lfs/git-lfs/commit/92d81117d465469a61dcb78546dd3d88806b25fd"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/git-lfs/git-lfs/commit/af5f4579ac1155734bb08f00ca92b9e89f8b51df"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/git-lfs/git-lfs/commit/d90ed66f2d465f8b3ba5fd6e4ac3c711c9e0a2d6"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/git-lfs/git-lfs"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/git-lfs/git-lfs/releases/tag/v3.8.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-78" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-20T14:47:01Z",
    "nvd_published_at" : "2026-11-19T17:18:58Z"
  }
}