CVE-2022-3162
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.
How to fix
- 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
| Product | Affected versions | Fixed in |
|---|---|---|
| kubernetes kubernetes | v ≤ 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/kubernetesGo | 1.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.16 | 1.25.4, 1.24.8, 1.23.14, 1.22.16 |
| k8s.io/kubernetesGo | 1.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.4 | 1.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.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.