{"answers":{"affected":"6 open source packages ship an affected version, including k8s.io/kube-state-metrics and github.com/kubernetes/kube-state-metrics. It affects 2 products.","exploited":"There is no known exploitation of CVE-2019-10223 in the wild and no public exploit code.","fix":"Upgrade k8s.io/kube-state-metrics to 1.7.2 or later.","what":"CVE-2019-10223 is a medium-severity vulnerability in Redhat Openshift Container Platform, published on 5 Nov 2019. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2019-10223 and fix it if it is affected.\n\nWhat it is: CVE-2019-10223 is a medium-severity vulnerability in Redhat Openshift Container Platform, published on 5 Nov 2019. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2019-10223 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- k8s.io/kube-state-metrics (Go): affected from 1.7.0; fixed in 1.7.2\n- k8s.io/kube-state-metrics (Go): affected from 1.7.0; fixed in 1.7.2\n- k8s.io/kube-state-metrics (Go): affected from 1.7.0; fixed in 1.7.2\n- k8s.io/kube-state-metrics (Go): affected from 1.7.0; fixed in 1.7.2\n- github.com/kubernetes/kube-state-metrics (Go): affected from 1.7.0; fixed in 1.7.2\n- github.com/kubernetes/kube-state-metrics (Go): affected from 1.7.0; fixed in 1.7.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2019-10223/ (Markdown: https://insights.sbomify.com/CVE-2019-10223/index.md)","id":"CVE-2019-10223","markdown":"https://insights.sbomify.com/CVE-2019-10223/index.md","name":"CVE-2019-10223","record":{"aliases":["CVE-2019-17110","GHSA-2v6x-frw8-7r7f","GHSA-c92w-72c5-9x59"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Kubernetes metrics exporter","requires_auth":"low_privilege","summary":"An experimental feature in kube-state-metrics could expose secret contents in metrics, allowing attackers to read sensitive data.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"kube-state-metrics","vendor":"kubernetes"},{"product":"openshift_container_platform","vendor":"redhat"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Duplicate Advisory: k8s.io/kube-state-metrics Exposure of Sensitive Information","id":"CVE-2019-10223","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":"redhat:openshift_container_platform","products":["redhat:openshift_container_platform"],"type":"information_disclosure","year":"2019"},"n_packages":6,"n_references":4,"next":{"headline":"Information disclosure in 389-ds-base","id":"CVE-2019-10224"},"packages":[{"ecosystem":"Go","fixed":["1.7.2"],"introduced":["1.7.0"],"last_affected":[],"package":"github.com/kubernetes/kube-state-metrics","purl":null,"source":"GHSA-2v6x-frw8-7r7f"},{"ecosystem":"Go","fixed":["1.7.2"],"introduced":["1.7.0"],"last_affected":[],"package":"github.com/kubernetes/kube-state-metrics","purl":"pkg:golang/github.com/kubernetes/kube-state-metrics","source":"GHSA-2v6x-frw8-7r7f"},{"ecosystem":"Go","fixed":["1.7.2"],"introduced":["1.7.0"],"last_affected":[],"package":"k8s.io/kube-state-metrics","purl":null,"source":"GHSA-2v6x-frw8-7r7f"},{"ecosystem":"Go","fixed":["1.7.2"],"introduced":["1.7.0"],"last_affected":[],"package":"k8s.io/kube-state-metrics","purl":"pkg:golang/k8s.io/kube-state-metrics","source":"GHSA-2v6x-frw8-7r7f"},{"ecosystem":"Go","fixed":["1.7.2"],"introduced":["1.7.0"],"last_affected":[],"package":"k8s.io/kube-state-metrics","purl":null,"source":"GHSA-c92w-72c5-9x59"},{"ecosystem":"Go","fixed":["1.7.2"],"introduced":["1.7.0"],"last_affected":[],"package":"k8s.io/kube-state-metrics","purl":"pkg:golang/k8s.io/kube-state-metrics","source":"GHSA-c92w-72c5-9x59"}],"prev":{"headline":"Denial of service in ceph","id":"CVE-2019-10222"},"products":["kube-state-metrics"],"published":"2019-11-05","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["Red Hat"]},"summary":"An experimental feature in kube-state-metrics could expose secret contents in metrics, allowing attackers to read sensitive data.","url":"https://insights.sbomify.com/CVE-2019-10223/"}