GHSA-4g4p-42wc-9f3m
CRITICALGit LFS can execute a Git binary from the current directory
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
Blast Radius
github.com/git-lfs/git-lfsReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
Impact
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.
Patches
This version should be patched in v2.12.1, which will be released in coordination with this security advisory.
Workarounds
Other than avoiding untrusted repositories, there is no workaround.
For more information
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/git-lfs/git-lfs | all versions | 2.12.1 |
Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Git LFS 2.12.0 allows Remote Code Execution.
Git LFS 2.12.0 allows Remote Code Execution.
Git LFS 2.12.0 allows Remote Code Execution.
Git LFS 2.12.0 allows Remote Code Execution.
Git LFS 2.12.0 allows Remote Code Execution.
Git LFS 2.12.0 allows Remote Code Execution.
Git LFS 2.12.0 allows Remote Code Execution.
Git LFS 2.12.0 allows Remote Code Execution.
Git LFS 2.12.0 allows Remote Code Execution.
Frequently Asked Questions
Is GHSA-4g4p-42wc-9f3m in your stack?
O3 detects GHSA-4g4p-42wc-9f3m across Go dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.