CVE-2022-31077: CloudCore CSI Driver: Malicious response from KubeEdge can crash CSI Driver controller server
4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.54638%
CWE
Published
6/25/2022
Updated
1/27/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/kubeedge/kubeedge | go | = 1.10.0 | 1.10.1 |
| github.com/kubeedge/kubeedge | go | < 1.9.3 | 1.9.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from nil-pointer dereferences during message processing. The commit diff shows multiple functions were modified to return &struct{} instead of nil pointers in error cases. Specifically:
- ExtractMessage in udsserver/server.go previously returned nil on empty context/unmarshal errors
- extractMessage in csidriver/utils.go used pointer declarations vulnerable to nil returns
- Similar patterns in node/pvc/volumeattachment handlers (node.go shown as example) These functions would crash when callers attempted to use the returned nil pointers. The fixes ensure non-nil returns even in error cases, confirming these were the vulnerable points.