CVE-2022-0759

kubeclient: kubeconfig parsing error can lead to MITM attacks

Published Mar 25, 2022 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
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).

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-1339 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).
Github GHSA Github GHSA GHSA-69p3-xp37-f692 Improper Certificate Validation in kubeclient
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 2, 2024, 11:40 PM
Reserved
Feb 24, 2022, 12:00 AM
Status
Modified
Published
Mar 25, 2022, 7:15 PM
Modified
Jun 17, 2026, 4:21 AM
Severity
Important
Public date
Mar 22, 2022, 12:00 AM