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:
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).include_metadata: true, so client metadata reaches the exporter.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:
x-shard: ["s", "x-tenant", "tenant-victim"], no x-tenantx-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.
metadata_keys is meant to provide in multi-tenant pipelines.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.
If users cannot upgrade immediately, implementing any of the following removes the exposure:
metadata_keys from sending_queue::batch::partition.
sending_queue::batch on the affected exporters.include_metadata: false on receivers if the exporters do not need client metadata.Reported by: ARSB
{
"cwe_ids": [
"CWE-172"
],
"github_reviewed": true,
"github_reviewed_at": "2026-12-01T01:59:32Z",
"nvd_published_at": null,
"severity": "MODERATE"
}