CVE-2019-17110: Duplicate Advisory K8s.io/kube-state-metrics Exposure Of Sensitive Information Vulnerability

MODERATE
Advisory Identifier: GHSA-2v6x-frw8-7r7f
CVSS 6.5
CWE-200
Published
Advisory Summary

CVE-2019-17110 is a MODERATE (CVSS 6.5) k8s.io/kube-state-metrics exposure of sensitive information vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Duplicate Advisory libraries in the Go ecosystem. The issue involves k8s.io/kube-state-metrics exposure of sensitive information. Remediation is available by upgrading affected packages to version 1.7.2.

CVE-2019-17110 at a Glance

CVE Identifier CVE-2019-17110
GHSA Identifier GHSA-2v6x-frw8-7r7f
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Duplicate Advisory
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2019-17110

To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/kubernetes/kube-state-metrics fixed: 1.7.2
Upgrade github.com/kubernetes/kube-state-metrics to 1.7.2
k8s.io/kube-state-metrics fixed: 1.7.2
Upgrade k8s.io/kube-state-metrics to 1.7.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/kubernetes/kube-state-metrics

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-17110, inspect your project dependencies for Duplicate Advisory:

inspect dependencies for github.com/kubernetes/kube-state-metrics

Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.7.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

# Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-c92w-72c5-9x59. This link is maintained to preserve external references. # Original Description A security issue was discovered in kube-state-metrics 1.7.x before 1.7.2. An experimental feature was added to v1.7.0 and v1.7.1 that enabled annotations to be exposed as metrics. By default, 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.

CVE-2019-17110 Affected Duplicate Advisory Versions

2 component(s)
Fixed Versions:
1.7.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/kubernetes/kube-state-metrics
Go
≥ 1.7.0
< 1.7.2
1.7.2
k8s.io/kube-state-metrics
Go
≥ 1.7.0
< 1.7.2
1.7.2

References

Frequently Asked Questions

What is CVE-2019-17110?
CVE-2019-17110 is a security vulnerability in Duplicate Advisory involving k8s.io/kube-state-metrics Exposure of Sensitive Information under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 1.7.2 across affected packages: github.com/kubernetes/kube-state-metrics, k8s.io/kube-state-metrics.
What version fixes CVE-2019-17110?
Upgrading to 1.7.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/kubernetes/kube-state-metrics affected?
Yes, github.com/kubernetes/kube-state-metrics is affected in releases prior to 1.7.2. Upgrade your dependency to 1.7.2 or later.
Is k8s.io/kube-state-metrics affected?
Yes, k8s.io/kube-state-metrics is affected in releases prior to 1.7.2. Upgrade your dependency to 1.7.2 or later.
What is the CVSS score of CVE-2019-17110?
CVE-2019-17110 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2019-17110?
CVE-2019-17110 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Go dependencies for CVE-2019-17110?
Run the dependency tree command: 'inspect dependencies for github.com/kubernetes/kube-state-metrics'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2v6x-frw8-7r7f",
  "modified" : "2024-01-23T17:50:31Z",
  "published" : "2021-05-18T15:38:54Z",
  "withdrawn" : "2024-01-23T17:50:31Z",
  "aliases" : [ "CVE-2019-17110" ],
  "summary" : "Duplicate Advisory: k8s.io/kube-state-metrics Exposure of Sensitive Information",
  "details" : "# Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-c92w-72c5-9x59. This link is maintained to preserve external references.\n\n# Original Description\n\nA security issue was discovered in kube-state-metrics 1.7.x before 1.7.2. An experimental feature was added to v1.7.0 and v1.7.1 that enabled annotations to be exposed as metrics. By default, 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/kubernetes/kube-state-metrics"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.7.0"
      }, {
        "fixed" : "1.7.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "k8s.io/kube-state-metrics"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.7.0"
      }, {
        "fixed" : "1.7.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-17110"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubernetes/kube-state-metrics/commit/03122fe3e2df49a9a7298b8af921d3c37c430f7f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubernetes/kube-state-metrics/commit/2a9ab3a9a0f1c4dbecb6a5577185b33bfac86a96"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kubernetes/kube-state-metrics"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubernetes/kube-state-metrics/releases/tag/v1.7.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-17T21:04:15Z",
    "nvd_published_at" : null
  }
}