NetSight
medium6.5

CVE-2022-3162

Kubernetes vulnerable to path traversal

Impact

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 packages

EcosystemPackageAffectedFixed in
gogithub.com/kubernetes/kubernetes>= 1.25.0, < 1.25.31.25.4

Affected products

VendorProductAffected versions
KubernetesKubernetes
through 1.22.15
from 1.23.0 through 1.23.13
from 1.24.0 through 1.24.7
from 1.25.0 through 1.25.3

Weakness classification

References