Miggo Logo

CVE-2022-23486: libp2p DoS vulnerability from lack of resource management

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.21532%
Published
12/7/2022
Updated
7/14/2023
KEV Status
No
Technology
TechnologyRust

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
libp2prust<= 0.45.00.45.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability fundamentally stems from missing resource management in three key areas: 1) Stream multiplexers (mplex/yamux) didn't enforce per-connection stream limits 2) Connection management lacked proper resource caps 3) Protocol handlers allowed memory-intensive operations without throttling. While exact function names aren't specified in advisories, the architectural components and CWE mappings (CWE-400/770) clearly indicate these subsystems as vulnerable points. The high confidence comes from the explicit mention of stream multiplexers and connection management in vulnerability details, while protocol buffer handling is inferred from described attack variations.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t *n *tt**k*r no** **n **us* * vi*tim no** to *llo**t* * l*r** num**r o* sm*ll m*mory **unks, w*i** **n ultim*t*ly l*** to t** vi*tim’s pro**ss runnin* out o* m*mory *n* t*us **ttin* kill** *y its op*r*tin* syst*m. W**n *x**ut** *ontinuousl

Reasoning

T** vuln*r**ility *un**m*nt*lly st*ms *rom missin* r*sour** m*n***m*nt in t*r** k*y *r**s: *) Str**m multipl*x*rs (mpl*x/y*mux) *i*n't *n*or** p*r-*onn**tion str**m limits *) *onn**tion m*n***m*nt l**k** prop*r r*sour** **ps *) Proto*ol **n*l*rs *llo