Advisory

GHSA-c92w-72c5-9x59

Also known as: CVE-2019-10223, CVE-2019-17110, GHSA-2v6x-frw8-7r7f, GO-2022-0621

Summary

kube-state-metrics may expose secret content in metrics

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-05-24 17:00 UTC
Modified
2023-11-08 04:00 UTC

Affected packages and fixes

k8s.io/kube-state-metrics

Go · All systems

Affected

  • introduced 1.7.0, fixed 1.7.2 (semver)

Fixed versions

1.7.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences