fix(security): Go-Git Has an Argument Injection via the URL Field (DD-3703) - #97
Open
defectdojo-sensei-demo[bot] wants to merge 1 commit into
Open
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Automated remediation generated by DefectDojo Sensei.
This pull request applies a fix for 1 security finding.
Commit:
d725c94555c6017c2884c776aa2c455c7141b86fDD-3703: Go-Git Has an Argument Injection via the URL Field
Severity: High
File:
go.modThe vulnerability GHSA-v725-9546-7q7m affects
gopkg.in/src-d/go-git.v4, which is an archived/unmaintained fork of go-git. This library is vulnerable to argument injection via the URL field when making git operations that delegate to thegitbinary. An attacker who can control the repository URL could inject additional git command-line arguments (e.g.,--upload-pack=malicious-command), potentially leading to remote code execution. The fix is to migrate from the abandonedgopkg.in/src-d/go-git.v4to the actively maintained successorgithub.com/go-git/go-git/v5, which has patched this vulnerability.Suggested change