GHSA-c92w-72c5-9x59

Suggest an improvement
Source
https://github.com/advisories/GHSA-c92w-72c5-9x59
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-c92w-72c5-9x59/GHSA-c92w-72c5-9x59.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-c92w-72c5-9x59
Aliases
Published
2022-05-24T17:00:21Z
Modified
2023-11-08T04:00:43.469724Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2019-11-05T12:15:00Z",
    "github_reviewed_at": "2023-02-08T00:31:28Z",
    "severity": "MODERATE",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-200"
    ]
}
References

Affected packages

Go / k8s.io/kube-state-metrics

Package

Name
k8s.io/kube-state-metrics
View open source insights on deps.dev
Purl
pkg:golang/k8s.io/kube-state-metrics

Affected ranges

Type
SEMVER
Events
Introduced
1.7.0
Fixed
1.7.2