Arbitrary Argument Injection Affecting github.com/go-git/go-git/plumbing/transport package, versions >=4.0.0 <5.13.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOGITGOGITPLUMBINGTRANSPORT-8602419
  • published7 Jan 2025
  • disclosed6 Jan 2025
  • creditvin01

Introduced: 6 Jan 2025

NewCVE-2025-21613  (opens in a new tab)
CWE-88  (opens in a new tab)

How to fix?

Upgrade github.com/go-git/go-git/plumbing/transport to version 5.13.0 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Argument Injection via a malicious URL value, which allows an attacker to set flags on the git-upload-pack command, if the file: protocol is in use.

References

CVSS Scores

version 4.0
version 3.1