Miggo Logo

GHSA-87m9-rv8p-rgmg: go-grpc-compression has a zstd decompression bombing vulnerability

7.5

CVSS Score
3.1

Basic Information

CVE ID
-
EPSS Score
-
Published
6/10/2024
Updated
6/17/2024
KEV Status
No
Technology
TechnologyGo

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
github.com/mostynb/go-grpc-compressiongo>= 1.1.4, < 1.2.31.2.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability description explicitly mentions that the Decoder.DecodeAll function from github.com/klauspost/compress/zstd was the source of the vulnerability. The provided commit patch shows that the Decompress method within the compressor struct in internal/zstd/zstd.go was modified to remove the usage of c.decoder.DecodeAll. This directly addresses the vulnerability. The function compressor.Decompress was responsible for calling the vulnerable DecodeAll function, making it the key function involved in the vulnerability. The confidence is high because the patch directly modifies this function to remove the vulnerable call, and the commit message and vulnerability description corroborate this finding. The function signature compressor.Decompress is precise as it would appear in a Go profiler, including the receiver type.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t * m*li*ious us*r *oul* **us* * **ni*l o* s*rvi** (*oS) w**n usin* * sp**i*lly *r**t** *RP* r*qu*st. T** ***ompr*ssion m****nism *or zst* *i* not r*sp**t t** limits impos** *y *RP*, *llowin* r*pi* m*mory us*** in*r**s*s. V*rsions v*.*.* t

Reasoning

T** vuln*r**ility **s*ription *xpli*itly m*ntions t**t t** `***o**r.***o***ll` *un*tion *rom `*it*u*.*om/kl*uspost/*ompr*ss/zst*` w*s t** sour** o* t** vuln*r**ility. T** provi*** *ommit p*t** s*ows t**t t** `***ompr*ss` m*t*o* wit*in t** `*ompr*ssor