Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update module github.com/go-git/go-git/v5 to v5.13.0 [SECURITY] #467

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 11, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/go-git/go-git/v5 v5.1.0 -> v5.13.0 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

GitHub Vulnerability Alerts

CVE-2023-49569

Impact

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, which is the default when using "Plain" versions of Open and Clone funcs (e.g. PlainClone). Applications using 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.

Patches

Users running versions of go-git from v4 and above are recommended to upgrade to v5.11 in order to mitigate this vulnerability.

Workarounds

In cases where a bump to the latest version of go-git is not possible in a timely manner, we recommend limiting its use to only trust-worthy Git servers.

Credit

Thanks to Ionut Lalu for responsibly disclosing this vulnerability to us.

CVE-2023-49568

Impact

A denial of service (DoS) vulnerability was discovered in go-git versions prior to v5.11. This vulnerability allows an attacker to perform denial of service attacks by providing specially crafted responses from a Git server which triggers resource exhaustion in go-git clients.

Applications using only the in-memory filesystem supported by go-git are not affected by this vulnerability.
This is a go-git implementation issue and does not affect the upstream git cli.

Patches

Users running versions of go-git from v4 and above are recommended to upgrade to v5.11 in order to mitigate this vulnerability.

Workarounds

In cases where a bump to the latest version of go-git is not possible, we recommend limiting its use to only trust-worthy Git servers.

Credit

Thanks to Ionut Lalu for responsibly disclosing this vulnerability to us.

References

CVE-2025-21613

Impact

An argument injection vulnerability was discovered in go-git versions prior to v5.13.

Successful exploitation of this vulnerability could allow an attacker to set arbitrary values to git-upload-pack flags. This only happens when the file transport protocol is being used, as that is the only protocol that shells out to git binaries.

Affected versions

Users running versions of go-git from v4 and above are recommended to upgrade to v5.13 in order to mitigate this vulnerability.

Workarounds

In cases where a bump to the latest version of go-git is not possible, we recommend users to enforce restrict validation rules for values passed in the URL field.

Credit

Thanks to @​vin01 for responsibly disclosing this vulnerability to us.

CVE-2025-21614

Impact

A denial of service (DoS) vulnerability was discovered in go-git versions prior to v5.13. This vulnerability allows an attacker to perform denial of service attacks by providing specially crafted responses from a Git server which triggers resource exhaustion in go-git clients.

This is a go-git implementation issue and does not affect the upstream git cli.

Patches

Users running versions of go-git from v4 and above are recommended to upgrade to v5.13 in order to mitigate this vulnerability.

Workarounds

In cases where a bump to the latest version of go-git is not possible, we recommend limiting its use to only trust-worthy Git servers.

Credit

Thanks to Ionut Lalu for responsibly disclosing this vulnerability to us.


Release Notes

go-git/go-git (github.com/go-git/go-git/v5)

v5.13.0

Compare Source

What's Changed

New Contributors

Full Changelog: go-git/go-git@v5.12.0...v5.13.0

v5.12.0

Compare Source

What's Changed

New Contributors

Full Changelog: go-git/go-git@v5.11.0...v5.12.0

v5.11.0

Compare Source

What's Changed

New Contributors

Full Changelog: go-git/go-git@v5.10.1...v5.11.0

v5.10.1

Compare Source

What's Changed

New Contributors

Full Changelog: go-git/go-git@v5.10.0...v5.10.1

v5.10.0

Compare Source

What's Changed

New Contributors

Full Changelog: go-git/go-git@v5.9.0...v5.10.0

v5.9.0

Compare Source

What's Changed

New Contributors

Full Changelog: go-git/go-git@v5.8.1...v5.9.0

v5.8.1

Compare Source

What's Changed

Full Changelog: go-git/go-git@v5.8.0...v5.8.1

v5.8.0

Compare Source

What's Changed

New Contributors

Full Changelog: go-git/go-git@v5.7.0...v5.7.1

v5.7.0

Compare Source

What's Changed


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link
Contributor Author

renovate bot commented Aug 11, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: go.sum
Command failed: go get -d -t ./...
go: -d flag is deprecated. -d=true is a no-op
go: downloading github.com/logrusorgru/aurora v0.0.0-20200102142835-e9ef32dff381
go: downloading github.com/mattn/go-colorable v0.1.4
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/spf13/cobra v0.0.6
go: downloading github.com/spf13/viper v1.6.1
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a
go: downloading github.com/otiai10/copy v1.1.1
go: downloading github.com/qlik-oss/k-apis v0.1.16
go: downloading k8s.io/api v0.17.2
go: downloading k8s.io/apimachinery v0.17.0
go: downloading k8s.io/client-go v0.17.0
go: downloading sigs.k8s.io/yaml v1.1.0
go: downloading github.com/qlik-oss/kustomize/api v0.3.3-0.20200612023448-4c1f2f38ea9b
go: downloading sigs.k8s.io/kustomize v2.0.3+incompatible
go: downloading github.com/Masterminds/semver/v3 v3.1.0
go: downloading github.com/containers/image/v5 v5.1.0
go: downloading github.com/go-git/go-git/v5 v5.13.0
go: downloading github.com/gobuffalo/packr/v2 v2.7.1
go: downloading github.com/mattn/go-tty v0.0.3
go: downloading github.com/robfig/cron/v3 v3.0.1
go: downloading golang.org/x/net v0.33.0
go: downloading k8s.io/apiextensions-apiserver v0.17.2
go: downloading k8s.io/kubectl v0.0.0-20191219154910-1528d4eea6dd
go: downloading github.com/Shopify/ejson v1.2.1
go: downloading github.com/mattn/go-isatty v0.0.10
go: downloading github.com/inconshreveable/mousetrap v1.0.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/fsnotify/fsnotify v1.4.9
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/magiconair/properties v1.8.1
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: downloading github.com/pelletier/go-toml v1.2.0
go: downloading github.com/spf13/afero v1.2.2
go: downloading github.com/spf13/cast v1.3.0
go: downloading github.com/spf13/jwalterweatherman v1.0.0
go: downloading github.com/subosito/gotenv v1.2.0
go: downloading gopkg.in/ini.v1 v1.51.0
go: downloading github.com/gogo/protobuf v1.3.1
go: downloading github.com/google/gofuzz v1.0.0
go: downloading k8s.io/klog v1.0.0
go: downloading github.com/imdario/mergo v0.3.9
go: downloading golang.org/x/crypto v0.31.0
go: downloading github.com/evanphx/json-patch v4.5.0+incompatible
go: downloading github.com/containers/ocicrypt v0.0.0-20190930154801-b87a4a69c741
go: downloading github.com/opencontainers/go-digest v1.0.0-rc1
go: downloading github.com/opencontainers/image-spec v1.0.2-0.20190823105129-775207bd45b6
go: downloading github.com/sirupsen/logrus v1.9.0
go: downloading github.com/vbauerster/mpb/v4 v4.11.1
go: downloading golang.org/x/sync v0.10.0
go: downloading github.com/containers/storage v1.15.3
go: downloading github.com/mtrmac/gpgme v0.0.0-20170102180018-b2432428689c
go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
go: downloading github.com/gobuffalo/envy v1.9.0
go: downloading github.com/gobuffalo/packd v1.0.0
go: downloading golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a
go: downloading golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
go: downloading k8s.io/cli-runtime v0.17.2
go: downloading golang.org/x/text v0.21.0
go: downloading gopkg.in/inf.v0 v0.9.1
go: downloading github.com/golang/protobuf v1.5.3
go: downloading github.com/googleapis/gnostic v0.3.0
go: downloading golang.org/x/time v0.0.0-20191024005414-555d28b269f0
go: downloading k8s.io/utils v0.0.0-20191114184206-e782cd3c129f
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading golang.org/x/term v0.27.0
go: downloading dario.cat/mergo v1.0.0
go: downloading github.com/ProtonMail/go-crypto v1.1.3
go: downloading github.com/go-git/go-billy/v5 v5.6.0
go: downloading github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3
go: downloading github.com/emirpasic/gods v1.18.1
go: downloading k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a
go: downloading github.com/yujunz/go-getter v1.4.1-lite
go: downloading github.com/containers/libtrust v0.0.0-20190913040956-14b96171aa3b
go: downloading github.com/moby/moby v0.7.3-0.20190826074503-38ab9da00309
go: downloading github.com/klauspost/compress v1.9.4
go: downloading github.com/klauspost/pgzip v1.2.1
go: downloading github.com/ulikunitz/xz v0.5.6
go: downloading github.com/VividCortex/ewma v1.1.1
go: downloading github.com/opencontainers/runc v1.0.0-rc9
go: downloading github.com/docker/distribution v2.7.1+incompatible
go: downloading github.com/docker/go-connections v0.4.0
go: downloading github.com/ghodss/yaml v1.0.0
go: downloading github.com/opencontainers/selinux v1.3.0
go: downloading github.com/ostreedev/ostree-go v0.0.0-20190702140239-759a8c1ac913
go: downloading github.com/vbatts/tar-split v0.11.1
go: downloading github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99
go: downloading github.com/joho/godotenv v1.3.0
go: downloading github.com/rogpeppe/go-internal v1.11.0
go: downloading github.com/gobuffalo/logger v1.0.3
go: downloading github.com/mholt/archiver/v3 v3.3.0
go: downloading cloud.google.com/go v0.52.0
go: downloading google.golang.org/appengine v1.6.5
go: downloading github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de
go: downloading k8s.io/component-base v0.17.2
go: downloading github.com/mitchellh/go-wordwrap v1.0.0
go: downloading github.com/dustin/gojson v0.0.0-20160307161227-2e71ec9dd5ad
go: downloading gopkg.in/square/go-jose.v2 v2.4.0
go: downloading google.golang.org/protobuf v1.34.1
go: downloading github.com/json-iterator/go v1.1.8
go: downloading github.com/modern-go/reflect2 v1.0.1
go: downloading github.com/cyphar/filepath-securejoin v0.2.5
go: downloading github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376
go: downloading github.com/pjbgf/sha1cd v0.3.0
go: downloading github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
go: downloading github.com/go-openapi/spec v0.19.4
go: downloading github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d
go: downloading github.com/hashicorp/go-cleanhttp v0.5.1
go: downloading github.com/hashicorp/go-safetemp v1.0.0
go: downloading github.com/hashicorp/go-version v1.1.0
go: downloading github.com/mitchellh/go-testing-interface v1.0.0
go: downloading github.com/etcd-io/bbolt v1.3.3
go: downloading github.com/fullsailor/pkcs7 v0.0.0-20190404230743-d7302db945fa
go: downloading github.com/docker/docker-credential-helpers v0.6.3
go: downloading github.com/BurntSushi/toml v0.3.1
go: downloading github.com/gorilla/mux v1.7.3
go: downloading github.com/pquerna/ffjson v0.0.0-20190813045741-dac163c6c0a9
go: downloading golang.org/x/mod v0.19.0
go: downloading github.com/andybalholm/brotli v0.0.0-20190621154722-5f990b63d2d6
go: downloading github.com/dsnet/compress v0.0.1
go: downloading github.com/golang/snappy v0.0.1
go: downloading github.com/nwaples/rardecode v1.0.0
go: downloading github.com/pierrec/lz4 v2.3.0+incompatible
go: downloading github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8
go: downloading github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7
go: downloading github.com/peterbourgon/diskv v2.0.1+incompatible
go: downloading github.com/MakeNowJust/heredoc v0.0.0-20170808103936-bb23615498cd
go: downloading github.com/russross/blackfriday v1.5.2
go: downloading github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d
go: downloading github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/cloudflare/circl v1.3.7
go: downloading gopkg.in/warnings.v0 v0.1.2
go: downloading github.com/kevinburke/ssh_config v1.2.0
go: downloading github.com/skeema/knownhosts v1.3.0
go: downloading github.com/xanzy/ssh-agent v0.3.3
go: downloading github.com/google/uuid v1.1.1
go: downloading helm.sh/helm/v3 v3.1.2
go: downloading github.com/go-openapi/jsonpointer v0.19.3
go: downloading github.com/go-openapi/jsonreference v0.19.3
go: downloading github.com/go-openapi/swag v0.19.5
go: downloading github.com/emicklei/go-restful v2.9.5+incompatible
go: downloading github.com/docker/go-units v0.4.0
go: downloading github.com/Microsoft/go-winio v0.6.1
go: downloading github.com/containerd/containerd v1.3.2
go: downloading google.golang.org/grpc v1.27.0
go: downloading github.com/tchap/go-patricia v2.3.0+incompatible
go: downloading github.com/golang/gddo v0.0.0-20190419222130-af0f2af80721
go: downloading github.com/google/btree v1.0.0
go: downloading github.com/Masterminds/sprig/v3 v3.0.2
go: downloading github.com/gosuri/uitable v0.0.4
go: downloading github.com/gofrs/flock v0.7.1
go: downloading github.com/hairyhenderson/gomplate/v3 v3.6.0
go: downloading github.com/PuerkitoBio/purell v1.1.1
go: downloading github.com/mailru/easyjson v0.7.7
go: downloading golang.org/x/tools v0.23.0
go: downloading github.com/docker/go-metrics v0.0.1
go: downloading google.golang.org/genproto v0.0.0-20200128133413-58ce757ed39b
go: downloading github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2
go: downloading github.com/Microsoft/hcsshim v0.8.7
go: downloading github.com/mistifyio/go-zfs v2.1.1+incompatible
go: downloading github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96
go: downloading github.com/Masterminds/goutils v1.1.0
go: downloading github.com/huandu/xstrings v1.2.0
go: downloading github.com/mitchellh/copystructure v1.0.0
go: downloading github.com/fatih/color v1.7.0
go: downloading github.com/deislabs/oras v0.8.1
go: downloading github.com/xeipuuv/gojsonschema v1.1.0
go: downloading github.com/gobwas/glob v0.2.3
go: downloading github.com/zealic/xignore v0.3.3
go: downloading github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578
go: downloading github.com/josharian/intern v1.0.0
go: downloading github.com/containerd/continuity v0.0.0-20200107194136-26c1120b8d41
go: downloading github.com/prometheus/client_golang v1.1.0
go: downloading github.com/mattn/go-shellwords v1.0.9
go: downloading github.com/mitchellh/reflectwalk v1.0.0
go: downloading github.com/mattn/go-runewidth v0.0.6
go: downloading github.com/docker/cli v0.0.0-20200130152716-5d0cf8839492
go: downloading github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415
go: downloading github.com/asaskevich/govalidator v0.0.0-20200108200545-475eaeb16496
go: downloading github.com/aws/aws-sdk-go v1.28.9
go: downloading github.com/hairyhenderson/toml v0.3.1-0.20191004034452-2a4f3b6160f2
go: downloading github.com/ugorji/go/codec v1.1.7
go: downloading github.com/ugorji/go v1.1.7
go: downloading gocloud.dev v0.18.0
go: downloading gopkg.in/src-d/go-billy.v4 v4.3.2
go: downloading gopkg.in/src-d/go-git.v4 v4.13.1
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/gosimple/slug v1.9.0
go: downloading github.com/hashicorp/go-sockaddr v1.0.2
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4
go: downloading github.com/prometheus/common v0.6.0
go: downloading github.com/prometheus/procfs v0.0.5
go: downloading go.opencensus.io v0.22.2
go: downloading github.com/xeipuuv/gojsonpointer v0.0.0-20190809123943-df4f5c81cb3b
go: downloading github.com/hashicorp/golang-lru v0.5.4
go: downloading github.com/google/go-cmp v0.6.0
go: downloading github.com/docker/libkv v0.2.1
go: downloading github.com/hashicorp/consul/api v1.3.0
go: downloading github.com/hashicorp/vault/api v1.0.4
go: downloading cloud.google.com/go/storage v1.5.0
go: downloading github.com/google/wire v0.3.0
go: downloading google.golang.org/api v0.15.0
go: downloading github.com/rainycape/unidecode v0.0.0-20150907023854-cb7f23ec59be
go: downloading github.com/hashicorp/errwrap v1.0.0
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading github.com/containerd/cgroups v0.0.0-20190919134610-bf292b21730f
go: downloading github.com/morikuni/aec v1.0.0
go: downloading github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af
go: downloading github.com/boltdb/bolt v1.3.1
go: downloading github.com/hashicorp/go-rootcerts v1.0.1
go: downloading github.com/hashicorp/serf v0.8.5
go: downloading github.com/hashicorp/go-multierror v1.0.0
go: downloading github.com/hashicorp/go-retryablehttp v0.6.3
go: downloading github.com/hashicorp/vault/sdk v0.1.13
go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
go: downloading github.com/googleapis/gax-go/v2 v2.0.5
go: downloading github.com/googleapis/gax-go v2.0.2+incompatible
go: downloading github.com/armon/go-metrics v0.3.0
go: downloading github.com/hashicorp/go-hclog v0.10.0
go: downloading github.com/jstemmer/go-junit-report v0.9.1
go: downloading golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56
go: downloading golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f
go: downloading honnef.co/go/tools v0.0.1-2019.2.3
go: downloading github.com/src-d/gcfg v1.4.0
go: downloading github.com/hashicorp/go-immutable-radix v1.1.0
go: downloading github.com/ryanuber/go-glob v1.0.0
go: downloading github.com/Microsoft/go-winio v0.6.2
go: github.com/qlik-oss/sense-installer/pkg/qliksense imports
	github.com/qlik-oss/k-apis/pkg/git imports
	github.com/go-git/go-git/v5 imports
	github.com/go-git/go-git/v5/plumbing/transport/client imports
	github.com/go-git/go-git/v5/plumbing/transport/file imports
	golang.org/x/sys/execabs: cannot find module providing package golang.org/x/sys/execabs

@renovate renovate bot force-pushed the renovate/go-github.com-go-git-go-git-v5-vulnerability branch from 77ae5aa to 3d84653 Compare January 7, 2025 07:13
@renovate renovate bot changed the title Update module github.com/go-git/go-git/v5 to v5.11.0 [SECURITY] Update module github.com/go-git/go-git/v5 to v5.13.0 [SECURITY] Jan 7, 2025
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.

0 participants