# CVE-2022-31098: GO-2022-0502 - Weave GitOps leaked cluster credentials into logs on connection errors in github.com/weaveworks/weave-gitops

Source: https://junglewise.ai/threats/cve-2022-31098-weave-gitops-leaked-cluster-credentials-into-logs-on-connection  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-08-21  
License: CC BY 4.0 with a link back

CVE-2022-31098 · Severity: low · CVSS 3.1 · Published 2024-08-21

Weave GitOps leaked cluster credentials into logs on connection errors in github.com/weaveworks/weave-gitops

Technologies: [github.com/weaveworks/weave-gitops (Go)](https://junglewise.ai/threats/technologies/github-com-weaveworks-weave-gitops). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2022-31098 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-31098 being exploited in the wild.

**How severe is CVE-2022-31098?** Low severity, with a CVSS score of 3.1, published 21 August 2024.

**Which products and versions are affected?** github.com/weaveworks/weave-gitops (Go) SEMVER:introduced=0,fixed=0.8.1-rc.6.

**Is there a fix for CVE-2022-31098?** Yes. github.com/weaveworks/weave-gitops (Go): upgrade to 0.8.1-rc.6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-31098?** Check whether you run github.com/weaveworks/weave-gitops (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/weaveworks/weave-gitops (Go): upgrade to 0.8.1-rc.6 or later

  ```sh
  go get github.com/weaveworks/weave-gitops@v0.8.1-rc.6
  ```


## Affected products

- github.com/weaveworks/weave-gitops (Go) SEMVER:introduced=0,fixed=0.8.1-rc.6

## Identifiers

- CVE-2022-31098
- GHSA-xggc-qprg-x6mw
- GO-2022-0502

## Related threats

- [GO-2023-1377 - GitOps Run allows for Kubernetes workload injection in github.com/weaveworks/weave-gitops](https://junglewise.ai/threats/cve-2022-23508-gitops-run-allows-for-kubernetes-workload-injection)
- [GO-2023-1388 - Gitops Run insecure communication in github.com/weaveworks/weave-gitops](https://junglewise.ai/threats/cve-2022-23509-gitops-run-insecure-communication)
