CVE-2022-31098CWE-532

Weave GitOps leaked cluster credentials into logs on connection errors

Critical · published June 27, 2022

CVSS v3.1
9.0
EPSS
1%
Percentile
68.7
In the wild
Unconfirmed
What it is

🚨 An authenticated remote attacker can peek directly into your Kubernetes clusters! This vulnerability in Weave GitOps exposes sensitive configurations and service account tokens in plain text — talk about a security nightmare! 🔥 Think of it like a hotel manager leaving the guest registry wide open on the counter. Anyone with access could gather information about all the guests and even their payment details, putting everyone at risk. If exploited, an attacker could gain access to all registered Kubernetes cluster configurations, allowing them to manage those clusters freely. This means they could potentially manipulate resources, access sensitive data, or even cause a major service disruption — absolutely devastating!

Put simply

Think of it like a hotel manager leaving the guest registry wide open on the counter. Anyone with access could gather information about all the guests and even their payment details, putting everyone at risk. This vulnerability arises from the client factory dumping sensitive cluster configurations and their service account tokens into the pod logs whenever a connection error occurs with the API server. An attacker with access to these logs can retrieve this information, compromising the security of the Kubernetes environments.

What to do

If exploited, an attacker could gain access to all registered Kubernetes cluster configurations, allowing them to manage those clusters freely. This means they could potentially manipulate resources, access sensitive data, or even cause a major service disruption — absolutely devastating! Upgrade to Weave GitOps core version v0.8.1-rc.6 or newer to patch this vulnerability immediately. It's crucial to monitor log access and consider limiting access to pod logs and external log storage. There are no known workarounds, so timely action is essential! You've got this! Follow these steps to secure your systems, and you'll be a security hero in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01231 · 68.7th percentile
Weakness
CWE-532 · Insertion of Sensitive Information into Log File
Published
2022-06-27T22:05Z
EPSS history
Timeline
  • 27 JUN 22:05Z
    Weave GitOps leaked cluster credentials into logs on connection errors
    cvelistv5