CVE-2022-3162: Unauthorized read of Custom Resources

Published Oct 20, 2022
·
Updated

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

12 affected componentsFixes available
redhat/openshift<0:4.12.0-202301042257.p0.g77bec7a.assembly.stream.el9
0:4.12.0-202301042257.p0.g77bec7a.assembly.stream.el9
redhat/microshift<0:4.12.4-202302151633.p0.gb9fe8ac.assembly.4.12.4.el8
0:4.12.4-202302151633.p0.gb9fe8ac.assembly.4.12.4.el8
redhat/Kubernetes kube-apiserver<1.25.4
1.25.4
redhat/Kubernetes kube-apiserver<1.24.8
1.24.8
redhat/Kubernetes kube-apiserver<1.23.14
1.23.14
redhat/Kubernetes kube-apiserver<1.22.16
1.22.16
Kubernetes kubernetes<=1.22.15
Kubernetes kubernetes>=1.23.0<=1.23.13
Kubernetes kubernetes>=1.24.0<=1.24.7
Kubernetes kubernetes>=1.25.0<=1.25.3
Microsoft azl3 keda 2.4.0-15
Microsoft azl3 keda 2.14.0-1

Event History

Nov 10, 2022
CVE Published
04:00 PM
Mar 1, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Mar 6, 2023
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
DescriptionSeverity

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

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.

3

What is the severity of CVE-2022-3162?

CVE-2022-3162 has a severity rating of medium with a CVSS score of 6.5.

4

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.

5

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).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203