Git LFS may execute arbitrary commands via crafted Git LFS configurations
Affected
| Package | Affected versions | Fixed in |
|---|---|---|
| go:github.com/git-lfs/git-lfs | >= 1.3.0, <= 2.13.3 | No fix yet |
| go:github.com/git-lfs/git-lfs/v3 | >= 3.0.0, < 3.8.1 | 3.8.1 |
When fetching objects from a malicious repository, Git LFS may execute an arbitrary command or binary after failing to sufficiently restrict the set of configuration options defined in an .lfsconfig file in the repository. Git LFS permits a limited set of configuration options to be defined in an .lfsconfig file at the root of a Git repository, but does not filter these options correctly if their keys contain certain additional components, which allows an attacker to mimic options that configur…
Read on GitHub Advisory Database
On 11/20/2026, 11:59 PM, GitHub Advisory Database published "Git LFS may execute arbitrary commands via crafted Git LFS configurations" (type: Advisory). Severity is "High" (high). Related technologies: Go, GitHub. CVE: CVE-2026-105803.