Code execution via empty executable path handling
Published Apr 19, 2022 · Updated Apr 23, 2025
Code execution in GitHub Git LFS 2.12.1 through 3.1.2 allows attackers to run arbitrary code via a malicious repository on Windows. When a required executable is absent from PATH, Git LFS passes an empty path to Go os/exec, which searches the working directory and launches a PATHEXT-matched dot file. A victim must run an affected Git LFS command in the crafted repository while the intended git, cygpath, or uname program is missing from PATH, allowing code to run with the victim's privileges.
Summary
What happened
Code execution in GitHub Git LFS 2.12.1 through 3.1.2 allows attackers to run arbitrary code via a malicious repository on Windows. When a required executable is absent from PATH, Git LFS passes an empty path to Go os/exec, which searches the working directory and launches a PATHEXT-matched dot file. A victim must run an affected Git LFS command in the crafted repository while the intended git, cygpath, or uname program is missing from PATH, allowing code to run with the victim's privileges.
The record
- CVE
- CVE-2022-24826
- Published
- Apr 19, 2022
- Updated
- Apr 23, 2025
- Vendor
- Product
- Git LFS
- Classifications
- CWE-426, T1574.007
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Apr 19, 2022CVE publishedPublication date reported by the CVE source.
- Apr 23, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=3.1.3
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo