CVE-2022-3162: kubernetes Relative Path Traversal
Vulnerability summary
CVE-2022-3162 is a medium (CVSS 6.5) Relative Path Traversal vulnerability in kubernetes. EPSS estimates a 1.19% chance of exploitation in the next 30 days, higher than 67.5% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 4 · Related 3Timeline
- 01-03-2023PublishedVulnerability first disclosed.
- 07-03-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · Red hatEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- OSV · GoEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
1.19%
Chance of exploitation in the next 30 days
Percentile
68%
Versus all other CVEs
30-day change
0.00 pp
From 1.19% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-23Relative Path TraversalThe product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.
- CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Affected systems
Redhat4 products
- microshift< 0:4.12.4-202302151633.p0.gb9fe8ac.assembly.4.12.4.el8
- microshift-networking< 0:4.12.4-202302151633.p0.gb9fe8ac.assembly.4.12.4.el8
- microshift-release-info< 0:4.12.4-202302151633.p0.gb9fe8ac.assembly.4.12.4.el8
- microshift-selinux< 0:4.12.4-202302151633.p0.gb9fe8ac.assembly.4.12.4.el8
Debian1 product
- kubernetes< 1.20.5+really1.20.2-1
Github.com/kubernetes1 product
- kubernetes≥ 1.25.0, < 1.25.4 | ≥ 1.24.0, < 1.24.8 | ≥ 1.23.0, < 1.23.14 | ≥ 1.22.0, < 1.22.16
K8s.io1 product
- kubernetes≥ 1.25.0, < 1.25.4
Kubernetes1 product
- kubernetes≥ unspecified, ≤ v1.25.3 | ≥ unspecified, ≤ v1.24.7 | ≥ unspecified, ≤ v1.23.13 | ≥ unspecified, ≤ v1.22.15 | ≤ 1.22.15 | ≥ 1.23.0, ≤ 1.23.13 | ≥ 1.24.0, ≤ 1.24.7 | ≥ 1.25.0, ≤ 1.25.3
Ubuntu1 product
- kubernetesAll versions (No fix recorded)
6 vendors · 9 products