Git LFS may execute arbitrary commands via crafted Git LFS configurations
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in github.com/git-lfs/git-lfs/v3 3.8.1.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| git-lfs | >=1.3.0 <=2.13.3, >=3.0.0 <3.8.1 | ||
| go: github.com/git-lfs/git-lfs | >=1.3.0 <=2.13.3 | ||
| go: github.com/git-lfs/git-lfs/v3 | >=3.0.0 <3.8.1 | 3.8.1 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in github.com/git-lfs/git-lfs (Go), strongest first
Embed
A live severity badge for an advisory, README or ticket