On Windows, `git-sizer` might run a `git` executable within the repository being analyzed
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
### Impact On Windows, if `git-sizer` is run against a non-bare repository, and that repository has an executable called `git.exe`, `git.bat`, etc., then that executable might be run by `git-sizer` rather than the system `git` executable. An attacker could try to use social engineering to get a victim to run `git-sizer` against a hostile repository and thereby get the victim to run arbitrary code. On Linux or other Unix-derived platforms, a similar problem could occur if the user's `PATH` has the current directory before the path to the standard `git` executable, but this is would be a very unusual configuration that has been known for decades to lead to all kinds of security problems. ### Patches Users should update to git-sizer v1.4.0 ### Workarounds If you are on Windows, then either * Don't run `git-sizer` against a repository that might contain hostile code, or, if you must… * Run `git-sizer` against a bare clone of the hostile repository, or, if that is not possible… * Make sure that the hostile repository doesn't have an executable in its top-level directory before running `git-sizer`. If you are on Linux or other Unix-based system, then (for myriad reasons!) don't add the current directory to your `PATH`. ### References * [Command PATH security in Go](https://blog.golang.org/path-security) ### For more information If you have any questions or comments about this advisory: * Open an issue in [the `git-sizer` project](https://github.com/github/git-sizer). * Email us at [GitHub support](mailto:[email protected]).
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | github.com/github/git-sizer (Go) | before 1.4.0 | 1.4.0 | Patch available | GHSA-57q7-rxqq-7vgp |
- github.com/github/git-sizer (Go) Vendor— Affected before 1.4.0 Fixed in 1.4.0 Patch available GHSA-57q7-rxqq-7vgp
Remediation
- Fix · GHSA-57q7-rxqq-7vgp github.com/github/git-sizer (Go) Fixed in 1.4.0 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-57q7-rxqq-7vgp
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences