CVE-2022-31078: KubeEdge CloudCore Router memory exhaustion vulnerability
4.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.18911%
CWE
Published
7/11/2022
Updated
7/21/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/kubeedge/kubeedge | go | >= 1.11.0, < 1.11.1 | 1.11.1 |
| github.com/kubeedge/kubeedge | go | >= 1.10.0, < 1.10.2 | 1.10.2 |
| github.com/kubeedge/kubeedge | go | < 1.9.4 | 1.9.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unrestricted response body reading in the REST handler. In Go implementations, ioutil.ReadAll() is commonly used for reading HTTP response bodies, and its use without size limits would directly cause memory exhaustion. The router module's REST handler (RestHandler.ServeHTTP) is the entry point for these requests, making it the logical location for this vulnerability. The description explicitly mentions the REST handler's response handling as the root cause, aligning with this pattern.