Miggo Logo

CVE-2022-31080: DoS in KubeEdge's Websocket Client in package Viaduct

4.4

CVSS Score
3.1

Basic Information

EPSS Score
0.18911%
Published
7/11/2022
Updated
7/24/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/kubeedge/kubeedgego>= 1.11.0, < 1.11.11.11.1
github.com/kubeedge/kubeedgego>= 1.10.0, < 1.10.21.10.2
github.com/kubeedge/kubeedgego< 1.9.41.9.4

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from unbounded response body reads using io.ReadAll across multiple components. The patches consistently replace these with io.LimitReader constrained by MaxRespBodyLength (1MB). Key vulnerable functions are those directly processing HTTP/WebSocket responses in cloud components (router, admission controller), edge components (certificate management, service bus), and core streaming functionality. These functions would appear in profilers when handling large malicious responses due to their direct involvement in response body processing without size limits prior to patching.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### Imp**t * l*r** r*spons* r***iv** *y t** vi**u*t WS*li*nt **n **us* * *oS *rom m*mory *x**ustion. T** *ntir* *o*y o* t** r*spons* is **in* r*** into m*mory w*i** *oul* *llow *n *tt**k*r to s*n* * r*qu*st t**t r*turns * r*spons* wit* * l*r** *o*y.

Reasoning

T** vuln*r**ility st*ms *rom un*oun*** r*spons* *o*y r***s usin* `io.R****ll` **ross multipl* *ompon*nts. T** p*t***s *onsist*ntly r*pl*** t**s* wit* `io.LimitR****r` *onstr*in** *y `M*xR*sp*o*yL*n*t*` (*M*). K*y vuln*r**l* *un*tions *r* t*os* *ir**t