Improper Certificate Validation Affecting kubeclient package, versions <4.9.3


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (39th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-KUBECLIENT-2433131
  • published25 Mar 2022
  • disclosed22 Mar 2022
  • creditUnknown

Introduced: 22 Mar 2022

CVE-2022-0759  (opens in a new tab)
CWE-295  (opens in a new tab)

How to fix?

Upgrade kubeclient to version 4.9.3 or higher.

Overview

kubeclient is a client for Kubernetes REST API.

Affected versions of this package are vulnerable to Improper Certificate Validation via the parsing process of 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), which can lead to a man-in-the-middle attack.

CVSS Scores

version 3.1