CVE-2022-3162

Medium

Description

Users authorized to list or watch one type of namespaced custom resource cluster-wide can read custom resources of a different type in the same API group without authorization. Clusters are impacted by this vulnerability if all of the following are true: 1. There are 2+ CustomResourceDefinitions sharing the same API group 2. Users have cluster-wide list or watch authorization on one of those custom resources. 3. The same users are not authorized to read another custom resource in the same API group.

SeverityMedium
CVSS6.5
Exploit probability—
ProductKubernetes
PublishedMar 1, 2023
First seenMar 1, 2023
Weakness typeCWE-23CWE-23

How to fix

Update
  • github.com/kubernetes/kubernetes1.25.4, 1.24.8, 1.23.14, 1.22.16 or later
  • k8s.io/kubernetes1.22.16, 1.23.14, 1.24.8, 1.25.4 or later

Affected products

ProductAffected versionsFixed in
kubernetes kubernetesv ≤ 1.22.15, 1.23.0 ≤ v ≤ 1.23.13, 1.24.0 ≤ v ≤ 1.24.7, 1.25.0 ≤ v ≤ 1.25.3—
github.com/kubernetes/kubernetesGo1.25.0 ≤ v < 1.25.4, 1.24.0 ≤ v < 1.24.8, 1.23.0 ≤ v < 1.23.14, 1.22.0 ≤ v < 1.22.161.25.4, 1.24.8, 1.23.14, 1.22.16
k8s.io/kubernetesGo1.22.0 ≤ v < 1.22.16, 1.23.0 ≤ v < 1.23.14, 1.24.0 ≤ v < 1.24.8, 1.25.0 ≤ v < 1.25.41.22.16, 1.23.14, 1.24.8, 1.25.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.