Live threats

All CVEs / Kubernetes

CVE-2019-10223Kubernetes Kube-state-metrics

Medium 6.5

Priority
39
CVSS 3.1
6.5
EPSS
1.8%
probability of exploitation in 30 days · percentile 79
Auth required
Yes
Published
Nov 5, 2019
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-200
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Kube-state-metrics.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go k8s.io/kube-state-metrics ≥ 1.7.0 < 1.7.2 1.7.2 go get k8s.io/kube-state-metrics@v1.7.2
Go k8s.io/kube-state-metrics ≥ 1.7.0 < 1.7.2 1.7.2 go get k8s.io/kube-state-metrics@v1.7.2

Per OSV / GitHub Advisories (GHSA-c92w-72c5-9x59, GO-2022-0621). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
kuberneteskube-state-metrics1.7.0
kuberneteskube-state-metrics1.7.1
redhatopenshift_container_platform3.11
redhatopenshift_container_platform4.1
redhatopenshift_container_platform4.2

Official sources

References

Links published by the sources. Open them with care.