MEDIUM · CVSS 3.1 5.9 CWE-172

GHSA-cx3c-rmcx-ff35: OpenTelemetry Collector: exporterhelper metadata partition-key collisions allow cross-tenant telemetry mixture

Published 2026-12-01 · Updated 2026-12-01

Summary

An improper input validation vulnerability in the OpenTelemetry Collector exporterhelper allows partition-key collisions between different client metadata values. Engineering teams using multi-tenant metadata partitioning with queues and batching should upgrade immediately.

Who is affected

Affected deployments are those using Go go.opentelemetry.io/collector/exporter/exporterhelper versions from 0.147.0 up to before 0.164.0 where specific configuration conditions are met. These conditions include having an exporter with sending_queue enabled and metadata_keys set to two or more keys, a receiver with include_metadata set to true, and clients capable of sending multi-valued headers.

Exploitability

The vulnerability has a CVSS 3.1 base score of 5.9 (MEDIUM) with a vector of CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N. EPSS is not yet available and CISA Known Exploited Vulnerabilities is no, indicating that exploitation requires network access, high complexity to craft colliding metadata, and low privileges.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-12-01. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Go go.opentelemetry.io/collector/exporter/exporterhelper >= 0.147.0, < 0.164.0 0.164.0 go get go.opentelemetry.io/collector/exporter/[email protected]

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N

Attack vectorNetwork
Attack complexityHigh
Privileges requiredLow
User interactionNone
ScopeUnchanged
ConfidentialityLow
IntegrityHigh
AvailabilityNone

FAQ

What causes the partition-key collisions?

The exporter queue-batching code builds per-tenant partition keys by joining metadata key names and values with a single byte without length prefixes or value counts, causing different metadata layouts to produce identical keys.

What are the security impacts of this vulnerability?

The impact includes high integrity risks where telemetry from one tenant is exported as another's, and low confidentiality risks where a victim's data is exported under an attacker's metadata.

How can I mitigate the issue if I cannot upgrade immediately?

Mitigations include removing metadata_keys from the configuration, disabling sending_queue::batch, setting include_metadata to false on receivers, authenticating clients via proxies, or rejecting requests with multi-valued headers.

Original advisory description
## 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

References

Source records: GHSA-cx3c-rmcx-ff35 (OSV.dev).