Vulnerabilities in pkg:gem/kubeclient
PACKAGECVE-2022-0759 is a HIGH (CVSS 8.1) improper certificate validation vulnerability (CWE-295: Improper Certificate Validation) affecting Kubeclient libraries in the RubyGems ecosystem. The issue involves improper certificate validation in kubeclient. Remediation is available by upgrading affected packages to version 4.9.3.
pkg:gem/kubeclient
Vulnerability advisories affecting package pkg:gem/kubeclient. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-69p3-xp37-f692 | CVE-2022-0759 | HIGH | Improper Certificate Validation in kubeclient |
CVE-2022-0759 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2022-0759
To remediate this vulnerability, upgrade all affected Kubeclient dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade kubeclient to 4.9.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for kubeclient
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-0759, inspect your project dependencies for Kubeclient:
inspect dependencies for kubeclient
Analyze the terminal output to locate any version of Kubeclient in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.9.3), 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-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Kubeclient, 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
CVE-2022-0759 Affected Kubeclient Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
kubeclient
|
RubyGems |
< 4.9.3
|
4.9.3
|
References
Frequently Asked Questions
What is CVE-2022-0759?
Which Kubeclient versions are affected?
What version fixes CVE-2022-0759?
Is kubeclient affected?
What is the CVSS score of CVE-2022-0759?
What CWE is associated with CVE-2022-0759?
How can I check RubyGems dependencies for CVE-2022-0759?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-69p3-xp37-f692",
"modified" : "2022-04-08T21:45:06Z",
"published" : "2022-03-26T00:00:29Z",
"aliases" : [ "CVE-2022-0759" ],
"summary" : "Improper Certificate Validation in kubeclient",
"details" : "A flaw was found in all versions of kubeclient up to (but not including) v4.9.3, the Ruby client for Kubernetes REST API, in the way it parsed kubeconfig files. When the kubeconfig file does not configure custom CA to verify certs, kubeclient ends up accepting any certificate (it wrongly returns VERIFY_NONE). Ruby applications that leverage kubeclient to parse kubeconfig files are susceptible to Man-in-the-middle attacks (MITM).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "kubeclient"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.9.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-0759"
}, {
"type" : "WEB",
"url" : "https://github.com/ManageIQ/kubeclient/issues/554"
}, {
"type" : "WEB",
"url" : "https://github.com/ManageIQ/kubeclient/issues/555"
}, {
"type" : "WEB",
"url" : "https://github.com/ManageIQ/kubeclient/pull/556"
}, {
"type" : "WEB",
"url" : "https://github.com/ManageIQ/kubeclient/commit/109ea71de5a8881748f03ebbe103b49f0f1c7887"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ManageIQ/kubeclient"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/kubeclient/CVE-2022-0759.yml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-295" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-03-30T13:12:44Z",
"nvd_published_at" : "2022-03-25T19:15:00Z"
}
}