Repository navigation
fix: upgrade go-git to patched releases for GHSA-hc8v-wwc9-vgxm - #3335
Closed
chainloop-platform[bot] wants to merge 1 commit into
Closed
chainloop-platform[bot] wants to merge 1 commit into
chainloop-platform[bot] wants to merge 1 commit into
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.
Summary
Updated the pinned go-git dependencies to the first patched releases that address the symlink-following worktree advisory. This keeps the change limited to the Go module manifest and lockfile.
Vulnerability Fixed
GHSA-hc8v-wwc9-vgxm (HIGH): go-git worktree operations may follow symlinks outside the intended worktree boundary.
Changes Made
github.com/go-git/go-git/v6fromv6.0.0-alpha.4tov6.0.0-alpha.5ingo.mod, matching the first patched v6 release.github.com/go-git/go-git/v5entry fromv5.19.1tov5.19.2ingo.mod, matching the patched v5 line referenced by the assessment.go.sumwith checksums for the patched module versions.Verification
Ran
syft dir:. -o cyclonedx-json=sbom.json && grype sbom:sbom.json --only-fixed -o jsonagainst the patched repository SBOM. Outcome:resolved— grype no longer reportsGHSA-hc8v-wwc9-vgxmfor the scanned source tree.Risk Assessment
View the risk assessment in Chainloop