CVE-2022-3162: Kubernetes vulnerable to path traversal
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.71779%
CWE
Published
3/1/2023
Updated
5/11/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/kubernetes/kubernetes | go | >= 1.25.0, < 1.25.3 | 1.25.4 |
github.com/kubernetes/kubernetes | go | >= 1.24.0, < 1.24.8 | 1.24.8 |
github.com/kubernetes/kubernetes | go | >= 1.23.0, < 1.23.14 | 1.23.14 |
github.com/kubernetes/kubernetes | go | >= 1.22.0, < 1.22.16 | 1.22.16 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper path validation when handling custom resource requests in the same API group. Key functions in the API server's request handling chain:
- The List method in registry/store.go manages storage path resolution for list/watch operations. Without proper resource type validation, it allowed traversal across CRD types.
- The getResourceHandler in handlers/get.go processes resource paths. Lack of sanitization for relative path components ('..') enabled unauthorized access to different resource types. Both functions are central to the path resolution mechanism and align with the described CWE-22/CWE-23 path traversal characteristics. The kube-apiserver's custom resource handling architecture and the vulnerability's preconditions strongly implicate these core request processing functions.