Vulnerability
CVE-2026-69260
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.
8 advisories report this vulnerability, across 6 ecosystems.
Advisories
- ALPINE-EDGE-CVE-2026-69260
-
AZL-115952
CVE-2026-69260 affecting package git-lfs 3.6.1-7
-
DEBIAN-CVE-2026-69260
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.…
-
GHSA-w3f2-pr6x-wwjc
Git LFS may attempt arbitrary remote commands via crafted SSH URLs
-
GO-2026-7021
Git LFS may attempt arbitrary remote commands via crafted SSH URLs in github.com/git-lfs/git-lfs
-
RHSA-2026:91645
Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
-
RHVEX-CVE-2026-69260
git-lfs: git-lfs: Arbitrary command execution via crafted SSH URLs
-
openSUSE-SU-2026:12237-1
git-lfs-3.8.1-1.1 on GA media
References
- 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/security/advisories/GHSA-w3f2-pr6x-wwjc