Skip to content

fix: upgrade go-git to v5.19.1 to address security vulnerability#753

Open
plural-copilot[bot] wants to merge 1 commit into
mainfrom
agent/upgrade-go-git-v5.19.1-1748232000000
Open

fix: upgrade go-git to v5.19.1 to address security vulnerability#753
plural-copilot[bot] wants to merge 1 commit into
mainfrom
agent/upgrade-go-git-v5.19.1-1748232000000

Conversation

@plural-copilot

Copy link
Copy Markdown
Contributor

Summary

This PR upgrades github.com/go-git/go-git/v5 from v5.19.0 to v5.19.1 to fix a security vulnerability that allows crafted repositories to modify files outside the intended checkout target, including the repository's .git directory.

Security Issue

The vulnerability was found in the Docker image ghcr.io/pluralsh/console:sha-57eff70 and affects how go-git validates paths during repository operations. Malicious repository payloads could potentially modify:

  • The repository's .git directory
  • Submodule .git directories
  • Files outside the intended checkout target

The fix was introduced in upstream Git years ago, but go-git had drifted from those security checks.

Changes

  • go.mod: Updated github.com/go-git/go-git/v5 from v5.19.0 to v5.19.1
  • go.sum: Regenerated with new dependency checksums

Verification

✅ Application compiles successfully (Docker build: 380.5s)
✅ Docker image builds and runs correctly
✅ Test suite passes with no regressions (32 tests in 3.974s)
✅ No code changes required - backward compatible patch version

Risk Assessment

Low Risk - This is a patch version upgrade with no breaking API changes. The go-git library is used for basic repository operations (cloning, authentication) in pkg/utils/git/, and all existing functionality continues to work as expected.

🤖 Generated with Claude Code Agent

Upgrade github.com/go-git/go-git/v5 from v5.19.0 to v5.19.1 to fix
CVE affecting .git directory manipulation in crafted repositories.

The vulnerability allowed malicious repository payloads to modify
files outside the intended checkout target, including the repository's
.git directory and submodule directories.

Changes:
- Updated go.mod: go-git v5.19.0 -> v5.19.1
- Regenerated go.sum with new dependency checksums
- Verified compilation and test suite passes (32 tests)
- Confirmed Docker image builds and runs successfully

Fix Version: v5.19.1
Current Version: v5.19.0
Package: github.com/go-git/go-git/v5

@plural-copilot plural-copilot Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR was generated by the claude Plural Agent Runtime. Here's some useful information you might want to know to evaluate the ai's perfomance:

Name Details
💬 Prompt Security scanners have found the following vulnerability in our cluster:...
🔗 Run history View run history

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedgithub.com/​go-git/​go-git/​v5@​v5.19.0 ⏵ v5.19.182 +1100 +3100100100

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant