CVE-2022-0759 Improper Certificate Validation in kubeclient
Ruby applications using kubeclient are vulnerable to Man-in-the-Middle attacks when parsing kubeconfig files without custom CA settings.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-0759?
CVE-2022-0759 is a high-severity vulnerability in kubeclient, published on 25 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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).
Weakness: CWE-295
Which versions are affected by CVE-2022-0759?
2 open source packages ship an affected version, including kubeclient. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
kubeclient RubyGems | All versions | 4.9.3 |
kubeclient RubyGems | All versions | 4.9.3 |
Products include Redhat Kubeclient.
How do I fix CVE-2022-0759?
Upgrade kubeclient to 4.9.3 or later.
Is CVE-2022-0759 being exploited?
There is no known exploitation of CVE-2022-0759 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2022-0759, GHSA-69p3-xp37-f692, UBUNTU-CVE-2022-0759.