Skip to content
High 8.8

Git LFSに任意のリモートコマンドを実行される脆弱性

CVE-2026-69260 First seen on SecPulse

Summary

Git LFSの0.5.0から3.8.1より前のバージョンには、細工されたSSH URLにより任意のコマンドが実行される脆弱性があります。CVSSv4のスコアは7.6です。修正版の3.8.1に更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Git LFSの0.5.0から3.8.1より前のバージョンには、細工されたSSH URLにより任意のコマンドが実行される脆弱性があります。CVSSv4のスコアは7.6です。修正版の3.8.1に更新してください。

Affected packages

PackageAffected → Fixed
git-lfsgit-lfs —
Gogithub.com/git-lfs/git-lfs
0.5.0 – 2.13.3→ Not listed
Gogithub.com/git-lfs/git-lfs/v3
≥ 3.0.0, < 3.8.1→ 3.8.1
Bitnamigit-lfs
≥ 0.5.0, < 3.8.1→ 3.8.1

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details