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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.37% (percentile 72, 2026-11-28)
- **CWE:** CWE-23
- **Aliases:** GHSA-2394-5535-8j88, GO-2023-1628
- **Published:** 2023-03-01T00:00:00.000Z
- **Modified:** 2026-06-17T04:58:59.300Z

## Who should check

- Projects that depend on Go package github.com/kubernetes/kubernetes (\>= 1.25.0, \< 1.25.4)
- Projects that depend on Go package k8s.io/kubernetes (\>= 1.22.0, \< 1.22.16; \>= 1.23.0, \< 1.23.14; \>= 1.24.0, \< 1.24.8; \>= 1.25.0, \< 1.25.4)
- Anyone running Kubernetes \>= unspecified, \<= v1.25.3; \>= unspecified, \<= v1.24.7; \>= unspecified, \<= v1.23.13; \>= unspecified, \<= v1.22.15

## 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 and fixed versions

- Go `github.com/kubernetes/kubernetes`: affected \>= 1.25.0, \< 1.25.4; fixed 1.25.4, 1.24.8, 1.23.14, 1.22.16 (osv)
- Go `k8s.io/kubernetes`: affected \>= 1.22.0, \< 1.22.16; \>= 1.23.0, \< 1.23.14; \>= 1.24.0, \< 1.24.8; \>= 1.25.0, \< 1.25.4; fixed 1.22.16, 1.23.14, 1.24.8, 1.25.4 (osv)
- Kubernetes: \>= unspecified, \<= v1.25.3; \>= unspecified, \<= v1.24.7; \>= unspecified, \<= v1.23.13; \>= unspecified, \<= v1.22.15 (cvelist)

## Mitigation

- Upgrade github.com/kubernetes/kubernetes to one of 1.25.4, 1.24.8, 1.23.14, 1.22.16 (or later in the same release line).
- Upgrade k8s.io/kubernetes to one of 1.22.16, 1.23.14, 1.24.8, 1.25.4 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-3162. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-3162.md
Affected: github.com/kubernetes/kubernetes >= 1.25.0, < 1.25.4; k8s.io/kubernetes >= 1.22.0, < 1.22.16; >= 1.23.0, < 1.23.14; >= 1.24.0, < 1.24.8; >= 1.25.0, < 1.25.4
Fixed in: 1.25.4, 1.24.8, 1.23.14, 1.22.16

Steps:
1. Search this machine and project for github.com/kubernetes/kubernetes (Go), k8s.io/kubernetes (Go), Kubernetes: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-3162 being exploited?

There is no confirmed exploitation: CVE-2022-3162 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.37% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2022-3162?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2022-3162?

github.com/kubernetes/kubernetes \>= 1.25.0, \< 1.25.4; k8s.io/kubernetes \>= 1.22.0, \< 1.22.16; \>= 1.23.0, \< 1.23.14; \>= 1.24.0, \< 1.24.8; \>= 1.25.0, \< 1.25.4.

### Is there a fix for CVE-2022-3162?

Yes. Fixed in 1.25.4, 1.24.8, 1.23.14, 1.22.16. Upgrade github.com/kubernetes/kubernetes to one of 1.25.4, 1.24.8, 1.23.14, 1.22.16 (or later in the same release line). Upgrade k8s.io/kubernetes to one of 1.22.16, 1.23.14, 1.24.8, 1.25.4 (or later in the same release line).

### How do I check if I'm affected by CVE-2022-3162?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://groups.google.com/g/kubernetes-security-announce/c/iUd550j7kjA>
- vendor: <https://github.com/kubernetes/kubernetes/issues/113756>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-3162>
- vendor: <https://github.com/advisories/GHSA-2394-5535-8j88>
- other: <https://security.netapp.com/advisory/ntap-20230511-0004/>
- other: <https://github.com/kubernetes/kubernetes>
- other: <https://security.netapp.com/advisory/ntap-20230511-0004>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-3162>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-2394-5535-8j88> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2023-1628> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-3162> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-3162>
