GHSA-vf52-ppm4-c35w: Go.opentelemetry.io/collector/config/confighttp OpenTelemetry Collector GRPC Zstd Decoder Vulnerability

HIGH
CVSS 7.5
CWE-789
Published
Advisory Summary

GHSA-vf52-ppm4-c35w is a HIGH (CVSS 7.5) opentelemetry collector grpc zstd decoder vulnerability (CWE-789: Memory Allocation with Excessive Size Value) affecting Go.opentelemetry.io/collector/config/confighttp libraries in the Go ecosystem. The issue involves opentelemetry collector grpc zstd decoder permits pre-authentication memory exhaustion. Remediation is available by upgrading affected packages to version 1.71.0.

GHSA-vf52-ppm4-c35w at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-vf52-ppm4-c35w
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-789: Memory Allocation with Excessive Size Value
Affected Product Go.opentelemetry.io/collector/config/confighttp
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix GHSA-vf52-ppm4-c35w

To remediate this vulnerability, upgrade all affected Go.opentelemetry.io/collector/config/confighttp dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

go.opentelemetry.io/collector/config/confighttp fixed: 1.71.0
Upgrade go.opentelemetry.io/collector/config/confighttp to 1.71.0
go.opentelemetry.io/collector/config/configgrpc fixed: 1.71.0
Upgrade go.opentelemetry.io/collector/config/configgrpc to 1.71.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for go.opentelemetry.io/collector/config/confighttp

How to Check if You Are Affected

To determine whether your application is affected by GHSA-vf52-ppm4-c35w, inspect your project dependencies for Go.opentelemetry.io/collector/config/confighttp:

inspect dependencies for go.opentelemetry.io/collector/config/confighttp

Analyze the terminal output to locate any version of Go.opentelemetry.io/collector/config/confighttp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.71.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-789: Memory Allocation with Excessive Size Value, where the product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated. In Go.opentelemetry.io/collector/config/confighttp, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## 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.

GHSA-vf52-ppm4-c35w Affected Go.opentelemetry.io/collector/config/confighttp Versions

2 component(s)
Fixed Versions:
1.71.0
Product / Package Ecosystem Affected Versions Fixed Version
go.opentelemetry.io/collector/config/confighttp
Go
≥ 0.81.0
< 1.71.0
1.71.0
go.opentelemetry.io/collector/config/configgrpc
Go
< 1.71.0
1.71.0

References

Frequently Asked Questions

What is GHSA-vf52-ppm4-c35w?
GHSA-vf52-ppm4-c35w is a security vulnerability in Go.opentelemetry.io/collector/config/confighttp involving OpenTelemetry Collector gRPC zstd decoder permits pre-authentication memory exhaustion under CWE-789: Memory Allocation with Excessive Size Value.
Which Go.opentelemetry.io/collector/config/confighttp versions are affected?
Affected versions include releases prior to 1.71.0 across affected packages: go.opentelemetry.io/collector/config/confighttp, go.opentelemetry.io/collector/config/configgrpc.
What version fixes GHSA-vf52-ppm4-c35w?
Upgrading to 1.71.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is go.opentelemetry.io/collector/config/confighttp affected?
Yes, go.opentelemetry.io/collector/config/confighttp is affected in releases prior to 1.71.0. Upgrade your dependency to 1.71.0 or later.
Is go.opentelemetry.io/collector/config/configgrpc affected?
Yes, go.opentelemetry.io/collector/config/configgrpc is affected in releases prior to 1.71.0. Upgrade your dependency to 1.71.0 or later.
What is the CVSS score of GHSA-vf52-ppm4-c35w?
GHSA-vf52-ppm4-c35w has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with GHSA-vf52-ppm4-c35w?
GHSA-vf52-ppm4-c35w is classified under CWE-789: Memory Allocation with Excessive Size Value (The product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated.).
How can I check Go dependencies for GHSA-vf52-ppm4-c35w?
Run the dependency tree command: 'inspect dependencies for go.opentelemetry.io/collector/config/confighttp'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vf52-ppm4-c35w",
  "modified" : "2026-12-02T22:26:24Z",
  "published" : "2026-12-02T22:26:24Z",
  "aliases" : [ ],
  "summary" : "OpenTelemetry Collector gRPC zstd decoder permits pre-authentication memory exhaustion",
  "details" : "## Summary\n\nThe 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.\n\nUsers 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.\n\n## Details\n\nThe 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`:\n\n- **HTTP** (`config/confighttp/compression.go`): the zstd reader was created with only `WithDecoderConcurrency(1)`.\n- **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.\n\nThe 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.\n\nOn 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.\n\nA 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.\n\nThe 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.\n\n## Impact\n\n- **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.\n- **gRPC:** exploitable without credentials, even when the receiver requires authentication.\n- **HTTP:** exploitable by any sender that passes authentication, or by anyone if no authentication is configured.\n- 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.\n  - 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.\n\n## Mitigation\n\nUpgrade to collector v0.165.0 or later. The fixed modules are:\n\n- `go.opentelemetry.io/collector/config/confighttp` v1.71.0\n- `go.opentelemetry.io/collector/config/configgrpc` v1.71.0\n\nIf 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.\n\n## Workarounds\n\nIf users can't upgrade immediately:\n\n- **HTTP:** remove `zstd` from `compression_algorithms` on every server that accepts remote traffic, for example `compression_algorithms: [\"\", \"gzip\"]`.\n- **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.\n- Restrict network access to receiver endpoints to trusted clients, for example by binding to localhost or a private interface, or by using network policies.\n- Don't rely on `memory_limiter`. It runs in the pipeline, after decompression, so it can't prevent this allocation.\n- Don't rely on receiver `auth` for gRPC. It runs after the allocation. For HTTP, authentication does block unauthenticated senders.\n\n## Credits\n\nReported by ccyclonic. PoC and analysis for the authenticated-receiver case by yonatan-tenzai.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "go.opentelemetry.io/collector/config/confighttp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.81.0"
      }, {
        "fixed" : "1.71.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "go.opentelemetry.io/collector/config/configgrpc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.71.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/open-telemetry/opentelemetry-collector/security/advisories/GHSA-vf52-ppm4-c35w"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/open-telemetry/opentelemetry-collector/issues/16280"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/open-telemetry/opentelemetry-collector/pull/16281"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/open-telemetry/opentelemetry-collector/commit/2583302d78e19c4cf7fda45b664ea55cdf39a735"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/open-telemetry/opentelemetry-collector"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.165.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-789" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-02T22:26:24Z",
    "nvd_published_at" : null
  }
}