CVE-2019-10223

Medium

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.

SeverityMedium
CVSS6.5
Exploit probability—
ProductKubernetes Kube-state-metrics
PublishedNov 5, 2019
First seenNov 5, 2019

How to fix

Update
  • github.com/kubernetes/kube-state-metrics1.7.2 or later
  • k8s.io/kube-state-metrics1.7.2 or later

Affected products

ProductAffected versionsFixed in
kubernetes kube-state-metrics1.7.0, 1.7.1—
redhat openshift_container_platform3.11, 4.1, 4.2—
github.com/kubernetes/kube-state-metricsGo1.7.0 ≤ v < 1.7.21.7.2
k8s.io/kube-state-metricsGo1.7.0 ≤ v < 1.7.21.7.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.