CVE-2019-10223Kubernetes Kube-state-metrics
Medium 6.5
Follow: this CVE · Kubernetes · Kubernetes Kube-state-metrics We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Kube-state-metrics.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| kubernetes | kube-state-metrics | 1.7.0 |
| kubernetes | kube-state-metrics | 1.7.1 |
| redhat | openshift_container_platform | 3.11 |
| redhat | openshift_container_platform | 4.1 |
| redhat | openshift_container_platform | 4.2 |
Official sources
References
Links published by the sources. Open them with care.
- www.openwall.com
- bugzilla.redhat.com Issue Tracking Vendor Advisory
- github.com
- www.openwall.com Exploit Mailing List Third Party Advisory