cve.bz

CVE-2022-3162 kubernetes kubernetes: Path traversal

6.5 mediumEPSS 1.4%Fix available

Medium (6.5) in kubernetes kubernetes. EPSS 1.4% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/kubernetes/kubernetes 1.22.16, 1.23.14, 1.24.8.

On this page
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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
1.4% (unchanged from 1.4% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 74th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-03-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
CWE-23 Relative Path Traversal
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-3162 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-3162?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-3162?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-3162 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Kubernetesthrough v1.25.3
Kubernetesthrough v1.24.7
Kubernetesthrough v1.23.13
Kubernetesthrough v1.22.15

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2394-5535-8j88Gogithub.com/kubernetes/kubernetes>=1.25.0 <1.25.41.25.4
GHSA-2394-5535-8j88Gogithub.com/kubernetes/kubernetes>=1.24.0 <1.24.81.24.8
GHSA-2394-5535-8j88Gogithub.com/kubernetes/kubernetes>=1.23.0 <1.23.141.23.14
GHSA-2394-5535-8j88Gogithub.com/kubernetes/kubernetes>=1.22.0 <1.22.161.22.16
GO-2023-1628Gok8s.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
1.22.16, 1.23.14, 1.24.8, 1.25.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14kubernetes1.20.5+really1.20.2-1DEBIAN-CVE-2022-3162
Red Hatopenshift:4.12::el8ansible-runner, python3-ansible-runner0:1.4.6-2.el8arRHSA-2022:7398
Red Hatopenshift:4.12::el8ansible-runner-http0:1.0.0-2.el8arRHSA-2022:7398
Red Hatopenshift:4.12::el8bootupd, rust-bootupd, bootupd-debuginfo and 1 more0:0.2.5-3.rhaos4.12.el8RHSA-2022:7398
Red Hatopenshift:4.12::el8butane, butane-debuginfo, butane-debugsource and 1 more0:0.16.0-2.rhaos4.12.el8RHSA-2022:7398
Red Hatopenshift:4.12::el8conmon-rs0:0.4.0-2.rhaos4.12.git.el8RHSA-2022:7398
Red Hatopenshift:4.12::el8console-login-helper-messages, console-login-helper-messages-profile, console-login-helper-messages-issuegen0:0.20.4-1.rhaos4.12.el8RHSA-2022:7398
Red Hatopenshift:4.12::el8containernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource0:1.0.1-5.rhaos4.11.el8RHSA-2022:7398
Red Hatopenshift:4.12::el8coreos-installer, coreos-installer-bootinfra, coreos-installer-debuginfo and 2 more0:0.16.1-1.rhaos4.12.el8RHSA-2022:7398
Red Hatopenshift:4.12::el8cri-o, cri-o-debuginfo, cri-o-debugsource0:1.25.1-5.rhaos4.12.git6005903.el8RHSA-2022:7398
Red Hatopenshift:4.12::el8cri-tools, cri-tools-debuginfo, cri-tools-debugsource0:1.25.0-2.el8RHSA-2022:7398
Red Hatopenshift:4.12::el8crit, criu, criu-libs and 5 more0:3.15-4.rhaos4.11.el8RHSA-2022:7398
Red Hatopenshift:4.12::el8crudini0:0.9-11.el8ost.1RHSA-2022:7398
189 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 3 morekubernetes1.231.23.17-150300.7.6.1SUSE-SU-2023:2292-1
openSUSETumbleweedgovulncheck-vulndb0.0.20250807T150727-1.1openSUSE-SU-2025:15424-1
openSUSETumbleweedkubernetes1.251.25.7-1.1openSUSE-SU-2024:12810-1
Azure Linux2cert-manager1.11.2-1AZL-13780
Azure Linux2keda2.4.0-29AZL-13781
Azure Linux2kube-vip-cloud-provider0.0.2-21AZL-13782
Azure Linux2kubernetes1.25.4-0AZL-31287
Azure Linux2prometheus-adapter0.10.0-17AZL-25938
Azure Linux2rook1.6.2-25AZL-13783
Azure Linux3keda2.14.0-1AZL-34838

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat OpenShift Container Platform 4.12openshift-0:4.12.0-202301042257.p0.g77bec7a.assembly.stream.el8Fixed 2023-01-17RHSA-2022:7398
Red Hat OpenShift Container Platform 4.12microshift-0:4.12.4-202302151633.p0.gb9fe8ac.assembly.4.12.4.el8Fixed 2023-02-20RHSA-2023:0772
Red Hat OpenShift Container Platform 3.11atomic-openshiftOut of support scope
Red Hat OpenShift Container Platform 4openshift4/ose-testsWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-3162.

Attack patterns (CAPEC)

  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-139 Relative Path Traversal Likelihood: High · Severity: High
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON