# CVE-2019-10223: kube-state-metrics may expose secret content in metrics

- Severity: Medium 5.3 (CVSS:3.0, scored by redhat) `CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.78%, higher than 78% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2019-11-05T11:40:37.000Z
- Modified: 2026-06-17T02:10:31.720Z
- Also known as: GHSA-2v6x-frw8-7r7f, GHSA-c92w-72c5-9x59, GO-2022-0621
- Related: CVE-2019-17110
- Weaknesses: CWE-200
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- Red Hat kube-state-metrics: kube-state-metrics versions v1.7.0 and v1.7.1
- github.com/kubernetes/kube-state-metrics (Go): from 1.7.0 before 1.7.2
- k8s.io/kube-state-metrics (Go): from 1.7.0 before 1.7.2
- kubernetes kube-state-metrics: 1.7.0; 1.7.1
- redhat openshift_container_platform: 3.11; 4.1; 4.2

## Every score

- redhat: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:P/I:N/A:N`

## References

- <https://www.openwall.com/lists/oss-security/2019/08/09/1> (exploit, mailing-list, third-party-advisory, web)
- <http://www.openwall.com/lists/oss-security/2019/08/15/8> (mailing-list, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10223> (issue-tracking, vendor-advisory, web)
- <https://github.com/kubernetes/kube-state-metrics/releases/tag/v1.7.2> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-17110> (advisory)
- <https://github.com/kubernetes/kube-state-metrics/commit/03122fe3e2df49a9a7298b8af921d3c37c430f7f> (fix, web)
- <https://github.com/kubernetes/kube-state-metrics/commit/2a9ab3a9a0f1c4dbecb6a5577185b33bfac86a96> (web)
- <https://github.com/kubernetes/kube-state-metrics> (package)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-10223> (advisory)
- <https://pkg.go.dev/vuln/GO-2022-0621> (web)

## Sources

- CVE List: [CVE-2019-10223](https://www.cve.org/CVERecord?id=CVE-2019-10223), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-2v6x-frw8-7r7f](https://github.com/advisories/GHSA-2v6x-frw8-7r7f), CC-BY-4.0, modified 2024-01-23
- GitHub Advisory Database: [GHSA-c92w-72c5-9x59](https://github.com/advisories/GHSA-c92w-72c5-9x59), CC-BY-4.0, modified 2023-11-08
- Go Vulnerability Database: [GO-2022-0621](https://pkg.go.dev/vuln/GO-2022-0621), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2019-10223](https://nvd.nist.gov/vuln/detail/CVE-2019-10223), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-10223 · Whole record: https://cve.day/CVE-2019-10223.json · Rebuilt by cve.day 2026-11-25T22:57:47.781Z
