Git LFS may attempt arbitrary remote commands via crafted SSH URLs

State
Published
Severity
7.6 High
Published
Nov 19, 2026
Updated
Nov 19, 2026
Reserved
Aug 3, 2026

Read the record on cve.org

Description

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.

ProductVersions
git-lfs git-lfs>= 0.5.0, <= 2.13.3 Affected>= 3.0.0, < 3.8.1 Affected

Weaknesses

  • CWE-78 Improper Neutralization of Special Elements used in an OS Command

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.