go-grpc-compression has a zstd decompression bombing vulnerability
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-400.
Summary
### Impact A malicious user could cause a denial of service (DoS) when using a specially crafted gRPC request. The decompression mechanism for zstd did not respect the limits imposed by gRPC, allowing rapid memory usage increases. Versions v1.1.4 through to v1.2.2 made use of the Decoder.DecodeAll function in github.com/klauspost/compress/zstd to decompress data provided by the peer. The vulnerability is exploitable only by attackers who can send gRPC payloads to users of github.com/mostynb/go-grpc-compression/zstd or github.com/mostynb/go-grpc-compression/nonclobbering/zstd. ### Patches Version v1.2.3 of github.com/mostynb/go-grpc-compression avoids the issue by not using the Decoder.DecodeAll function in github.com/klauspost/compress/zstd. All users of github.com/mostynb/go-grpc-compression/zstd or github.com/mostynb/go-grpc-compression/nonclobbering/zstd in the affected versions should update to v1.2.3. ### Workarounds Other compression formats were not affected, users may consider switching from zstd to another format without upgrading to a newer release. ### References This issue was uncovered during a security audit performed by [Miroslav Stampar](https://github.com/stamparm/) of [7ASecurity](https://7asecurity.com/), facilitated by [OSTIF](https://ostif.org/), for the OpenTelemetry project. https://opentelemetry.io/blog/2024/cve-2024-36129 https://github.com/open-telemetry/opentelemetry-collector/security/advisories/GHSA-c74f-6mfw-mm4v
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | github.com/mostynb/go-grpc-compression (Go) | 1.1.4 to before 1.2.3 | 1.2.3 | Patch available | GHSA-87m9-rv8p-rgmg |
- github.com/mostynb/go-grpc-compression (Go) Vendor— Affected 1.1.4 to before 1.2.3 Fixed in 1.2.3 Patch available GHSA-87m9-rv8p-rgmg
Remediation
- Fix · GHSA-87m9-rv8p-rgmg github.com/mostynb/go-grpc-compression (Go) Fixed in 1.2.3 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-87m9-rv8p-rgmg
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences