Go
GHSA-vf52-ppm4-c35w
OpenTelemetry Collector gRPC zstd decoder permits pre-authentication memory exhaustion
- Severity
- High 7.5
- Published
- 2 Dec 2026
- Last changed
- 2 Dec 2026
- Added to UpHeron
- 2 Dec 2026
- Fixed in
- 1.71.0
- Weakness
- CWE-789
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Sources
- OSV.dev and GitHub
Description
The OTLP/HTTP and OTLP/gRPC receive paths decode zstd-compressed requests without limiting the decoder's history window. A sender declares that window in a single header byte, and the decoder allocates it before producing any output. A tiny (about 10-byte) request can therefore make the collector allocate about 0.5 GiB of memory. Repeated requests can exhaust memory and crash the collector. No credentials are required on gRPC, even when receiver authentication is configured; HTTP requires passing authentication when enabled.
Users are only affected if their application collector config includes a component that serves requests through confighttp or configgrpc, such as an otlp receiver with the http or grpc protocol. For HTTP, zstd must be among the accepted compression_algorithms, which it is by default (["", "gzip", "zstd", "zlib", "snappy", "deflate", "lz4"]). For gRPC, zstd is always offered by the server.
Workarounds
Upgrade to collector v0.165.0 or later. The fixed modules are:
- go.opentelemetry.io/collector/config/confighttp v1.71.0
- go.opentelemetry.io/collector/config/configgrpc v1.71.0
If an application builds a custom distribution with ocb, rebuild it against these versions or newer. Lowering max_request_body_size and max_recv_msg_size_mib on the fixed versions also limits how large the window can be.
If users can't upgrade immediately:
- HTTP: remove zstd from compression_algorithms on every server that accepts remote traffic, for example compression_algorithms: ["", "gzip"].
Affected software
| Software | Affected versions |
|---|---|
go.opentelemetry.io/collector/config/configgrpcGo · osv:Go:go.opentelemetry.io/collector/config/configgrpc |
|
go.opentelemetry.io/collector/config/confighttpGo · osv:Go:go.opentelemetry.io/collector/config/confighttp |
|
About go.opentelemetry.io/collector/config/configgrpc
This is the only vulnerability in go.opentelemetry.io/collector/config/configgrpc in our list.
About go.opentelemetry.io/collector/config/confighttp
This is the only vulnerability in go.opentelemetry.io/collector/config/confighttp in our list.
References
- GitHub Advisory Database https://github.com/advisories/GHSA-vf52-ppm4-c35w