Loading advisory.
Loading advisory.
Git LFS can execute a Git binary from the current directory
On Windows, if Git LFS operates on a malicious repository with a git.bat or git.exe file in the current directory, that program would be executed, permitting the attacker to execute arbitrary code. This does not affect Unix systems.
Published 2020-11-05 14:57 UTC · Modified 2024-08-04 16:25 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| github.com/git-lfs/git-lfs | Go | < 2.12.1 | 2.12.1 | go get github.com/git-lfs/git-lfs@v2.12.1 |
On Windows, if Git LFS operates on a malicious repository with a git.bat or git.exe file in the current directory, that program would be executed, permitting the attacker to execute arbitrary code. This does not affect Unix systems.
This occurs because on Windows, Go includes (and prefers) the current directory when the name of a command run does not contain a directory separator.
This version should be patched in v2.12.1, which will be released in coordination with this security advisory.
Other than avoiding untrusted repositories, there is no workaround.
If you have any questions or comments about this advisory:
Start a discussion in the Git LFS discussion page.
If you cannot open a discussion, please email the core team using their usernames at github.com.
Exploit code or a detection template for this CVE is published by the sources below. This is not a report of use against real systems (that is what CISA KEV records) and it does not change the tier.
EPSS went from 0.823 on 2026-11-24 to 0.817 on 2026-11-30, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.823 | first score | v2026.06.15 |
| 2026-11-30 | 0.817 | 0.823 | v2026.06.15 |