CVE-2022-0759
Improper Certificate Validation in kubeclient
Reported by redhat · Published March 25, 2022
kubeclient is fixed in 4.9.3 (RubyGems)
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).
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kubeclient | RubyGems | 4.9.3 |
| kubeclient | redhat | 4.9.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | kubeclient | 4.9.3 |
| RubyGems | kubeclient | 0 |
| n/a | kubeclient | 4.9.3 |
Timeline
- Mar 25, 2022 CVE Published
- Mar 26, 2022 EPSS Score (30 in total, the first dated here)
- Nov 21, 2024 CVE Updated
- Mar 17, 2026 Security Advisory (39 in total, the first dated here)
- Jul 12, 2026 Coalition ESS Score
- Aug 29, 2026 PoC Published (2 in total, the first dated here)
- Oct 13, 2026 Distribution Patch (38 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-0759
vulnetix vdb fixes CVE-2022-0759
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-0759/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2022-0759 advisory
- https://github.com/ManageIQ/kubeclient/pull/556 patch
- https://github.com/advisories/GHSA-69p3-xp37-f692 advisory