Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients
Description
A path traversal vulnerability was discovered in go-git versions prior to v5.11. This vulnerability allows an attacker to create and amend files across the filesystem. In the worse case scenario, remote code execution could be achieved.
Applications are only affected if they are using the ChrootOS https://pkg.go.dev/github.com/go-git/go-billy/v5/osfs#ChrootOS , which is the default when using "Plain" versions of Open and Clone funcs (e.g. PlainClone). Applications using BoundOS https://pkg.go.dev/github.com/go-git/go-billy/v5/osfs#BoundOS or in-memory filesystems are not affected by this issue. This is a go-git implementation issue and does not affect the upstream git cli.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/go-git/go-git/v5Go | >= 5.0.0, < 5.11.0 | 5.11.0 |
gopkg.in/src-d/go-git.v4Go | >= 4.0.0, <= 4.13.1 | — |
Affected products
30- osv-coords29 versionspkg:apk/chainguard/bompkg:apk/chainguard/flux-2.0pkg:apk/chainguard/gitnesspkg:apk/chainguard/gitsignpkg:apk/chainguard/gitsign-configpkg:apk/chainguard/gitsign-credential-cachepkg:apk/chainguard/go-licensespkg:apk/chainguard/goreleaserpkg:apk/chainguard/goreleaser-1.18pkg:apk/chainguard/grafana-9pkg:apk/chainguard/grafana-oci-compat-9pkg:apk/chainguard/nucleipkg:apk/chainguard/pulumi-kubernetes-operatorpkg:apk/chainguard/scorecardpkg:apk/chainguard/src-fingerprintpkg:apk/wolfi/bompkg:apk/wolfi/gitnesspkg:apk/wolfi/gitsignpkg:apk/wolfi/gitsign-configpkg:apk/wolfi/gitsign-credential-cachepkg:apk/wolfi/go-licensespkg:apk/wolfi/goreleaserpkg:apk/wolfi/goreleaser-1.18pkg:apk/wolfi/nucleipkg:apk/wolfi/pulumi-kubernetes-operatorpkg:apk/wolfi/scorecardpkg:apk/wolfi/src-fingerprintpkg:golang/github.com/go-git/go-git/v5pkg:golang/gopkg.in/src-d/go-git.v4
< 0.6.0-r0+ 28 more
- (no CPE)range: < 0.6.0-r0
- (no CPE)range: < 2.0.1-r2
- (no CPE)range: < 3.0.0_beta5-r0
- (no CPE)range: < 0.8.1-r0
- (no CPE)range: < 0.8.1-r0
- (no CPE)range: < 0.8.1-r0
- (no CPE)range: < 1.6.0-r9
- (no CPE)range: < 1.24.0-r0
- (no CPE)range: < 1.18.2-r12
- (no CPE)range: < 9.5.15-r2
- (no CPE)range: < 9.5.15-r2
- (no CPE)range: < 3.2.0-r0
- (no CPE)range: < 1.14.0-r6
- (no CPE)range: < 4.13.1-r4
- (no CPE)range: < 0.19.0-r9
- (no CPE)range: < 0.6.0-r0
- (no CPE)range: < 3.0.0_beta5-r0
- (no CPE)range: < 0.8.1-r0
- (no CPE)range: < 0.8.1-r0
- (no CPE)range: < 0.8.1-r0
- (no CPE)range: < 1.6.0-r9
- (no CPE)range: < 1.24.0-r0
- (no CPE)range: < 1.18.2-r12
- (no CPE)range: < 3.2.0-r0
- (no CPE)range: < 1.14.0-r6
- (no CPE)range: < 4.13.1-r4
- (no CPE)range: < 0.19.0-r9
- (no CPE)range: >= 5.0.0, < 5.11.0
- (no CPE)range: >= 4.0.0, <= 4.13.1
Patches
Vulnerability mechanics
References
3News mentions
0No linked articles in our index yet.