Bug 1740431 (CVE-2019-10223) - CVE-2019-10223 kube-state-metrics: annotations exposed as metrics in combination with `kubectl` can allow for exposure of secrets
Summary: CVE-2019-10223 kube-state-metrics: annotations exposed as metrics in combinat...
Alias: CVE-2019-10223
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
: 1759118 (view as bug list)
Depends On:
Blocks: 1739957 1759119
TreeView+ depends on / blocked
Reported: 2019-08-13 00:53 UTC by Sam Fowler
Modified: 2021-02-16 21:30 UTC (History)
21 users (show)

Fixed In Version: kube-state-metrics 1.7.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2019-08-13 02:47:05 UTC

Attachments (Terms of Use)

Description Sam Fowler 2019-08-13 00:53:07 UTC
A security issue was discovered in the v1.7.0 and v1.7.1 versions of kube-state-metrics. 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.

Comment 1 Sam Fowler 2019-08-13 00:54:31 UTC
External References:


Comment 3 Sam Fowler 2019-12-01 23:41:32 UTC
*** Bug 1759118 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.