CVE-2019-10223 Duplicate Advisory: k8s.io/kube-state-metrics Exposure of Sensitive Information
An experimental feature in kube-state-metrics could expose secret contents in metrics, allowing attackers to read sensitive data.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-10223?
CVE-2019-10223 is a medium-severity vulnerability in Redhat Openshift Container Platform, published on 5 Nov 2019. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-200
Which versions are affected by CVE-2019-10223?
6 open source packages ship an affected version, including k8s.io/kube-state-metrics and github.com/kubernetes/kube-state-metrics. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
k8s.io/kube-state-metrics Go | From 1.7.0 | 1.7.2 |
k8s.io/kube-state-metrics Go | From 1.7.0 | 1.7.2 |
k8s.io/kube-state-metrics Go | From 1.7.0 | 1.7.2 |
k8s.io/kube-state-metrics Go | From 1.7.0 | 1.7.2 |
github.com/kubernetes/kube-state-metrics Go | From 1.7.0 | 1.7.2 |
github.com/kubernetes/kube-state-metrics Go | From 1.7.0 | 1.7.2 |
Products include Kubernetes Kube-State-Metrics, Redhat Openshift Container Platform.
How do I fix CVE-2019-10223?
Upgrade k8s.io/kube-state-metrics to 1.7.2 or later.
Is CVE-2019-10223 being exploited?
There is no known exploitation of CVE-2019-10223 in the wild and no public exploit code.
Sources
Also known as CVE-2019-17110, GHSA-2v6x-frw8-7r7f, GHSA-c92w-72c5-9x59.