NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐹
🐹 Go
Not in CISA KEV
HIGH severity

OpenTelemetry Collector gRPC zstd decoder permits pre-authentication memory exhaustionGHSA-vf52-ppm4-c35w

HIGHFix: open-telemetry/opentelemetry-collector#16281

GHSA-vf52-ppm4-c35w is a high-severity (CVSS 7.5) vulnerability in go.opentelemetry.io/collector/config/confighttp. A fix is available for go.opentelemetry.io/collector/config/confighttp — see the affected versions and patch details below.

Published
Updated
Affected
2 pkgs
Patched
2 / 2
Exploits
None indexed
Exploitation data as of Dec 2, 2026 · OSV.dev, FIRST.org (EPSS)

Real-World Exposure

2 pkgs affected
🐹go.opentelemetry.io/collector/config/confighttp🐹go.opentelemetry.io/collector/config/configgrpc

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.

Description

Summary

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.

Details

The zstd frame format lets the sender declare the decoder's window size in one header byte. The klauspost/compress decoder allocates a buffer of about that size on the first block, and the library default allows windows up to 512 MiB. The collector built its decoders without zstd.WithDecoderMaxWindow:

  • HTTP (config/confighttp/compression.go): the zstd reader was created with only WithDecoderConcurrency(1).
  • gRPC (config/configgrpc/internal/grpccompression/zstd): the encoder's window was capped at 512 KiB, but the decoder, which is the side an attacker controls, was left at the default.

The size limits from CVE-2024-36129 (max_request_body_size and max_recv_msg_size_mib) did not help. They cap the decompressed output read from the decoder, but this allocation happens inside the decoder, before any output exists. Pooled decoders also keep their large buffer for as long as they stay in the pool.

On gRPC, grpc-go decompresses the message in the transport before any interceptor runs. A receiver configured with an auth extension still allocates the memory for an unauthenticated request before rejecting it. On HTTP the authentication interceptor runs first, so the attack needs valid credentials there, such as a tenant, an agent or a leaked token.

A minimal frame (10 bytes) that triggers it: 28 b5 2f fd 00 98 09 00 00 41. Its window descriptor declares a 512 MiB window. The reporter measured a heap increase of about 513 MiB from reading one byte.

The fix (#16281) bounds the decoder window by the limit the server already enforces. HTTP derives the bound from max_request_body_size, and gRPC from max_recv_msg_size_mib. The bound never goes below 8 MiB, so frames from default encoders still decode, and never exceeds the library's 512 MiB ceiling. Oversized frames are rejected before any allocation.

Impact

  • Availability (high): a remote attacker who can reach an affected receiver can force large allocations with very small requests and make the collector run out of memory. That stops all telemetry collection through that collector.
  • gRPC: exploitable without credentials, even when the receiver requires authentication.
  • HTTP: exploitable by any sender that passes authentication, or by anyone if no authentication is configured.
  • After the fix, a request can still drive an allocation up to the configured size limit. That is at least 8 MiB, and max_request_body_size or max_recv_msg_size_mib otherwise. Keep those limits sensible.
    • Note: The registered compressor is process-wide. The patch selects the largest configured server receive limit, with an 8 MiB floor and the library ceiling.

Mitigation

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.

Workarounds

If users can't upgrade immediately:

  • HTTP: remove zstd from compression_algorithms on every server that accepts remote traffic, for example compression_algorithms: ["", "gzip"].
  • gRPC: the zstd codec is registered for all gRPC servers and can't be turned off in the config. Put a proxy or load balancer in front that rejects or strips requests with grpc-encoding: zstd (and Content-Encoding: zstd for HTTP) before they reach the collector.
  • Restrict network access to receiver endpoints to trusted clients, for example by binding to localhost or a private interface, or by using network policies.
  • Don't rely on memory_limiter. It runs in the pipeline, after decompression, so it can't prevent this allocation.
  • Don't rely on receiver auth for gRPC. It runs after the allocation. For HTTP, authentication does block unauthenticated senders.

Credits

Reported by ccyclonic. PoC and analysis for the authenticated-receiver case by yonatan-tenzai.

Affected Packages

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
🐹Gogo.opentelemetry.io/collector/config/confighttp≥ 0.81.0&&< 1.71.01.71.0go get go.opentelemetry.io/collector/config/confighttp@v1.71.0
🐹Gogo.opentelemetry.io/collector/config/configgrpcall versions1.71.0go get go.opentelemetry.io/collector/config/configgrpc@v1.71.0

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for go.opentelemetry.io/collector/config/confighttp, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update go.opentelemetry.io/collector/config/confighttp to 1.71.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-vf52-ppm4-c35w is resolved across your whole dependency graph.

  3. Workarounds

    Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.

Frequently Asked Questions

## Summary 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 c
O3 Security · Impact-Aware SCA

Is GHSA-vf52-ppm4-c35w in your dependencies?

Find it across Go, including transitive dependencies.

OpenTelemetry Collector gRPC zstd decoder permits…