CVE-2022-3162
JSON

6.5medium

Unauthorized read of Custom Resources

Severity
6.5medium CVSS:3.1 by kubernetes
Exploit likelihood
1.45% (higher than 74% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
kubernetes
Also known as
GHSA-2394-5535-8j88GO-2023-1628

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.

Affected

Product or packageVersionsReported by
Kubernetes Kubernetesfrom unspecified up to v1.25.3, from unspecified up to v1.24.7, from unspecified up to v1.23.13, from unspecified up to v1.22.15, up to 1.22.15, from 1.23.0 up to 1.23.13, from 1.24.0 up to 1.24.7, from 1.25.0 up to 1.25.3CVE List, NVD
github.com/kubernetes/kubernetes (Go)from 1.25.0 before 1.25.4, from 1.24.0 before 1.24.8, from 1.23.0 before 1.23.14, from 1.22.0 before 1.22.16GitHub Advisory Database
k8s.io/kubernetes (Go)from 1.22.0 before 1.22.16, from 1.23.0 before 1.23.14, from 1.24.0 before 1.24.8, from 1.25.0 before 1.25.4Go Vulnerability Database

All scores

kubernetes6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-22CWE-23

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

Go Vulnerability Database

Kubernetes vulnerable to path traversal in k8s.io/kubernetes

References

Sources

SourceRecordLicence
CVE ListCVE-2022-3162 changed 2025-03-07CVE Terms of Use
GitHub Advisory DatabaseGHSA-2394-5535-8j88 changed 2024-08-20CC-BY-4.0
Go Vulnerability DatabaseGO-2023-1628 changed 2026-03-03CC-BY-4.0
NVDCVE-2022-3162 changed 2026-06-17Public domain