Git LFS may execute arbitrary commands via crafted Git LFS configurations

State
Published
Severity
8.6 High
Published
Nov 19, 2026
Updated
Nov 19, 2026
Reserved
Oct 5, 2026

Read the record on cve.org

Description

Git LFS is a Git extension for versioning large files. From 1.3.0 until 3.8.1, Git LFS does not correctly filter the limited set of options permitted in a repository's .lfsconfig file when option keys contain certain additional components. Crafted keys can mimic options that configure Git LFS to use a custom command to transfer objects, causing Git LFS to execute an attacker-selected command or binary while fetching objects. This issue is fixed in version 3.8.1.

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

Weaknesses

  • CWE-777 Regular Expression without Anchors
  • CWE-1286 Improper Validation of Syntactic Correctness of Input

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.