Vulnerability in github.com/github/git-sizer: Running git executable within the repository on Windows

github.com/github/git-sizer Updated 02 Oct 2025

Summary

21/08/2024
N/A
Yes i
Unrated
Not published

GO-2022-0424: On Windows, git-sizer might run a git executable within the repository being analyzed in github.com/github/git-sizer. Affects github.com/github/git-sizer versions < 1.4.0. Fixed in 1.4.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

github.com/github/git-sizer is a Go package that provides a tool for computing various size metrics for a Git repository. It is commonly used to analyze the size and growth of repositories. This package utilizes the git executable to gather information about the repository being analyzed. However, on Windows, there is a vulnerability where the git-sizer tool might run a git executable within the repository being analyzed, leading to potential security risks.

Vulnerability Detail

The vulnerability in github.com/github/git-sizer arises from the improper execution of the git executable within the repository being analyzed. This can allow an attacker to execute arbitrary commands or access sensitive information within the repository. The vulnerability affects all versions of github.com/github/git-sizer prior to version 1.4.0. It is important to note that this vulnerability is specific to Windows systems.

How To Fix

Minimum fixed version

1.4.0

This is the first release that contains the fix.

go get github.com/github/git-sizer@v1.4.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. It is advised to update the package to the fixed version as soon as possible.

Conclusion

The vulnerability in github.com/github/git-sizer allows for the execution of a git executable within the repository being analyzed on Windows systems. This can lead to potential security risks, including arbitrary command execution and access to sensitive information. It is crucial to update the package to version 1.4.0 or later to mitigate this vulnerability.

See every vulnerability recorded for github.com/github/git-sizer →

Share this vulnerability

FAQ

github.com/github/git-sizer is a Go package that provides a tool for computing various size metrics for a Git repository. It is commonly used to analyze the size and growth of repositories.

The vulnerability allows an attacker to execute arbitrary commands or access sensitive information within the repository being analyzed.

All versions of github.com/github/git-sizer prior to version 1.4.0 are affected by this vulnerability.

Yes, this vulnerability is specific to Windows systems.

To fix this vulnerability, update the github.com/github/git-sizer package to version 1.4.0 or later.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/github/git-sizer.

How To Fix

Minimum fixed version

1.4.0

This is the first release that contains the fix.

go get github.com/github/git-sizer@v1.4.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback