CVE-2019-10223 json
kube-state-metrics may expose secret content in metrics
published 7y ago modified 4mo ago also CVE-2019-17110 , GHSA-2v6x-frw8-7r7f , GHSA-c92w-72c5-9x59 , GO-2022-0621 , EUVD-2022-3542
- cvss
- 5.3
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 78%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go k8s.io/kube-state-metrics 1.7.2
Is CVE-2019-10223 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2019-10223 updated cvss 5.3
kube-state-metrics: annotations exposed as metrics in combination with `kubectl` can allow for exposure of secrets
-
Red Hat OpenShift Container Platform 3.11 openshift3/ose-kube-state-metrics Red Hat OpenShift Container Platform 4 openshift4/ose-kube-state-metrics-rhel9not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.78% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- openwall.com https://www.openwall.com/lists/oss-security/2019/08/09/1 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 5.3 | CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 4.0 | AV:N/AC:L/Au:S/C:P/I:N/A:N |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | k8s.io/kube-state-metrics | >=1.7.0, <1.7.2 |
1.7.2 |
Affected products
- Red Hat kube-state-metrics
Classification
- Weakness
-
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
References
-
github.com
/kubernetes/kube-state-metrics/commit/03122fe3e2df49a9a7298b8af921d3c37c430f7f
web, patch
-
github.com
/kubernetes/kube-state-metrics/commit/2a9ab3a9a0f1c4dbecb6a5577185b33bfac86a96
web
-
openwall.com
/lists/oss-security/2019/08/09/1
mailing-list, web, exploit, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=CVE-2019-10223
web, issue-tracking, vendor-advisory
-
openwall.com
/lists/oss-security/2019/08/15/8
mailing-list, web
-
github.com
/kubernetes/kube-state-metrics/releases/tag/v1.7.2
web
-
nvd.nist.gov
/vuln/detail/CVE-2019-10223
advisory
-
github.com
/kubernetes/kube-state-metrics
package
-
pkg.go.dev
/vuln/GO-2022-0621
web
-
nvd.nist.gov
/vuln/detail/CVE-2019-17110
advisory
Sources
- CVE List CVE-2019-10223
- GitHub Advisory GHSA-c92w-72c5-9x59
- GitHub Advisory GHSA-2v6x-frw8-7r7f
- NVD CVE-2019-10223
- OSV GO-2022-0621
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.