CVE-2022-3162: Unauthorized read of Custom Resources
A flaw was found in kubernetes. Users authorized to list or watch one type of namespaced custom resource cluster-wide can read custom resources of a different kind in the same API group they are not authorized to read.
Other sources
A security issue was discovered in etcd where 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 they are not authorized to read.
— Red Hat
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.
Affected Software
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is CVE-2022-3162?
CVE-2022-3162 is a vulnerability in Kubernetes that allows users to read custom resources of a different type in the same API group without authorization.
How does CVE-2022-3162 affect clusters?
Clusters are impacted by CVE-2022-3162 if there are 2 or more CustomResourceDefinitions shared cluster-wide and users authorized to list or watch one type of namespaced custom resource can access custom resources of a different type in the same API group without authorization.
What is the severity of CVE-2022-3162?
CVE-2022-3162 has a severity rating of medium with a CVSS score of 6.5.
How can I fix CVE-2022-3162?
To fix CVE-2022-3162, update Kubernetes kube-apiserver to version 1.25.4, 1.24.8, 1.23.14, or 1.22.16, or update Red Hat OpenShift Container Platform to version 4.12.0-202301042257.p0.g77bec7a.assembly.stream.el9, or update microshift to version 4.12.4-202302151633.p0.gb9fe8ac.assembly.4.12.4.el8.
Where can I find more information about CVE-2022-3162?
You can find more information about CVE-2022-3162 at the following references: [Bugzilla - 2141987](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2141987), [Bugzilla - 2141988](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2141988), [Red Hat Security Advisory - RHSA-2022:7398](https://access.redhat.com/errata/RHSA-2022:7398).