Read the docs

OpenTelemetry Collector partition key collisions mix tenant telemetry

Priority MEDIUM 42CWE-172Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
High
Impact type
—
Confidentiality · integrity · availability
Low · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · GHSA-cx3c-rmcx-ff35. Fix status from GitHub.

Summary

The OpenTelemetry Collector exporterhelper package from 0.147.0 before 0.164.0 builds its batch partition key by joining metadata names and values with a single separator byte and no length prefixes, so different metadata can produce the same key. A client that controls its own metadata values and can land in the same batch window as a victim can have telemetry exported under another tenant's metadata, which breaks the tenant isolation that metadata_keys provides. The flaw is tracked as CWE-172 and requires a non-default configuration with batching and two or more metadata_keys, plus receivers with include_metadata enabled.

Written with Claude Haiku 5.5 from the sources below · 2026-12-01

Description from the GitHub advisory

## Summary The exporter queue-batching code builds its per-tenant partition key without clear boundaries between values. Two different sets of client metadata can therefore produce the same key. Their telemetry is then batched together and exported under the first request's metadata. This can misattribute telemetry data across tenants. Users are only affected if their collector config has **all** of the following: - An exporter with `sending_queue` enabled and `sending_queue::batch::partition::metadata_keys` set to **two or more** keys (batching and `metadata_keys` are both off by default). - A receiver with `include_metadata: true`, so client metadata reaches the exporter. - Clients that can send multi-valued headers or metadata for those keys. ## Details `metadataKeysPartitioner.GetKey()` in `exporter/exporterhelper/internal/queuebatch/metadata_partitioner.go` built the partition key by joining metadata key names and values with a single `\x00` byte, with no length prefixes or value counts. Different metadata layouts could therefore produce identical keys. For example, with `metadata_keys: [x-shard, x-tenant]`, these two requests produce the same key `x-shard\x00s\x00x-tenant\x00tenant-victim`: - Request A: `x-shard: ["s", "x-tenant", "tenant-victim"]`, no `x-tenant` - Request B: `x-shard: ["s"]`, `x-tenant: ["tenant-victim"]` Both are routed to the same partition batcher. When the batch is flushed, the merge function keeps only the first request's context, so all data in the batch is exported with that context's metadata (which downstream exporters use for tenant routing and headers). The partitioner was introduced in v0.147.0. The fix encodes each key's value count and each value's length with `binary.AppendUvarint`, so boundaries are unambiguous. ## Impact - **Integrity (high):** telemetry from one tenant, customer or shard can be exported as another's, poisoning their data. - **Confidentiality (low):** the reverse also occurs, so a victim's data can be exported under the attacker's metadata and routed to the attacker's tenant or storage. - Exploitation requires a client that controls its own metadata values, knowledge of the victim's key values, and landing in the same batch window. - This breaks the tenant isolation that `metadata_keys` is meant to provide in multi-tenant pipelines. ## Mitigation Upgrade to `go.opentelemetry.io/collector/exporter/exporterhelper` v0.164.0 or later (collector release v0.164.0 or later). Affected versions: `>= 0.147.0, < 0.164.0`. ## Workarounds If users cannot upgrade immediately, implementing any of the following removes the exposure: - Remove `metadata_keys` from `sending_queue::batch::partition`. - Note: This will avoid this particular configured partitioner, but can deliberately co-batch tenants. Preference is for disabling batching or trusted metadata rewriting when isolation remains required. - Disable `sending_queue::batch` on the affected exporters. - Set `include_metadata: false` on receivers if the exporters do not need client metadata. - Authenticate clients and have an auth extension or a proxy set the tenant and shard values. - Have a proxy reject requests that carry repeated (multi-valued) headers for the configured metadata keys. ## Credits **Reported by:** ARSB

Why it matters now

Fix Fixed go.opentelemetry.io/collector/exporter/exporterhelper (Go): 0.164.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—go.opentelemetry.io/collector/exporter/exporterhelper (Go)0.147.0 to before 0.164.00.164.0Patch availableGHSA-cx3c-rmcx-ff35
  • go.opentelemetry.io/collector/exporter/exporterhelper (Go) Vendor— Affected 0.147.0 to before 0.164.0 Fixed in 0.164.0 Patch available GHSA-cx3c-rmcx-ff35

Remediation

Upgrade go.opentelemetry.io/collector/exporter/exporterhelper to 0.164.0 or later, which is included in collector release v0.164.0. If an upgrade is not possible, remove metadata_keys from sending_queue::batch::partition, disable sending_queue::batch on affected exporters, or set include_metadata to false.

Written with Claude Haiku 5.5 from the sources below · 2026-12-01

  • Fix · GHSA-cx3c-rmcx-ff35 go.opentelemetry.io/collector/exporter/exporterhelper (Go) Fixed in 0.164.0 Advisory →

Timeline

  1. 2026-12-01 Threatist record created from GHSA-cx3c-rmcx-ff35

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences