Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐹 Go

GHSA-4g4p-42wc-9f3m

CRITICAL

Git LFS can execute a Git binary from the current directory

Also known asBIT-git-lfs-2020-27955CVE-2020-27955
Published
Feb 11, 2022
Updated
Dec 6, 2023
Affected
1 pkg
Patched
1 / 1
Exploits
12 known

EPSS Exploitation Probability

via FIRST.org ↗
92.9%probability of exploitation in next 30 days
Very High Risk100th percentile0.00%
92.1%92.8%93.4%94.1%92.6%92.9%Dec 25Apr 26Jun 26

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

1 pkg affected
🐹github.com/git-lfs/git-lfs

Real-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

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐹Gogithub.com/git-lfs/git-lfsall versions2.12.1
Exploits & PoCs
12

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Frequently Asked Questions

### 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 wo
O3 Security · Impact-Aware SCA

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.