GitHub Advisoryadvisory · Go

GHSA-c92w-72c5-9x59 kube-state-metrics may expose secret content in metrics

MEDIUM Published 2022-05-24 Modified 2023-02-08 Official page ↗
Aliases
CVE-2019-10223
Ecosystem
Go
Packages
k8s.io/kube-state-metrics
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-200
Reviewed
2023-02-08

Affected packages

• Go k8s.io/kube-state-metrics: >= 1.7.0, < 1.7.2 → fixed in 1.7.2

Description

A security issue was discovered in the kube-state-metrics versions v1.7.0 and v1.7.1. An experimental feature was added to the v1.7.0 release that enabled annotations to be exposed as metrics. By default, the kube-state-metrics metrics only expose metadata about Secrets. However, a combination of the default `kubectl` behavior and this new feature can cause the entire secret content to end up in metric labels thus inadvertently exposing the secret content in metrics. This feature has been reverted and released as the v1.7.2 release. If you are running the v1.7.0 or v1.7.1 release, please upgrade to the v1.7.2 release as soon as possible.

Related

Alias · CVE (1)

  • CVE-2019-10223 A security issue was discovered in the kube-state-metrics versions v1.7.0 and v1.7.1. vulnerability

Weakness · CWE (1)

  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor weakness

References