OpenTelemetry Partition Keys Can Blend Tenants Without Touching the Network
GHSA-cx3c-rmcx-ff35 affects the OpenTelemetry Collector exporter helper from 0.147.0 through versions before 0.164.0. The issue is not a parser crash or an exposed management port. It is a delimiter collision in the metadata used to partition queued telemetry for batching.
The collector can partition a sending queue by metadata keys. The vulnerable code joined key names and values with a single null byte, without recording value counts or lengths. Two different metadata layouts can therefore produce the same partition key. The advisory gives a concrete pair: a multi-valued x-shard header containing values that resemble another key, and a request that sends x-shard plus x-tenant separately. Both can map to the same serialized key. Their telemetry then enters the same batch, and the exporter flushes the batch using the first request's context.
The configuration matters
An installation is affected only when several settings align. The exporter must enable sending_queue and configure sending_queue::batch::partition::metadata_keys with at least two keys. A receiver must use include_metadata: true so client metadata reaches the exporter. Clients must be able to send multi-valued metadata for those keys. Default batching and metadata keys are off, which limits the population but does not make the bug theoretical.
Multi-tenant collectors often enable these controls precisely to keep customers or shards separate. The failure undermines that isolation. The advisory rates integrity impact as high because telemetry can be exported as another tenant's data, and confidentiality impact as low because a victim's data can be routed under the attacker's context. Exploitation requires a client that controls its own metadata, some knowledge of the victim's values and a shared batch window.
Detection before changing configuration
Inspect collector configuration for metadata_keys with two or more entries and for include_metadata: true. Identify receivers that accept client-supplied metadata and exporters that use metadata for routing, headers or storage destination. Compare collector version manifests and image digests across clusters. A dashboard may show the collector release while a custom distribution carries an older exporter helper.
Look for batches whose destination or tenant header changes within a short interval. Compare receiver-side request metadata with exporter-side attributes. Audit downstream tenant boundaries for records that contain expected data but unexpected routing metadata. Log reviews must account for high-volume telemetry and avoid storing sensitive payloads just to investigate the issue.
Fixes and compensating controls
Upgrade to collector release 0.164.0 or later. If the upgrade cannot be staged immediately, remove metadata_keys from sending_queue::batch::partition, as the advisory recommends, or separate tenants into distinct collector pipelines and destination credentials. Separating pipelines is a stronger boundary than relying on a serialized metadata string, but it costs operational capacity.
After the update, verify that multi-valued metadata no longer collides by testing the advisory's example shapes in a non-production pipeline. Confirm that the exporter routes each request to the intended destination and that batch metadata cannot be overwritten by earlier traffic. Then review downstream retention, access controls and tenant export logs. Telemetry can contain authentication events, URLs and internal service names, so a routing mistake has privacy and incident-response consequences.
This bug is a reminder that tenant identity belongs in a typed, unambiguous structure. Concatenating arbitrary key-value pairs with a separator is not a partition function. The fix uses length-prefixed encoding because boundaries must remain explicit even when clients control the values.
Top comments (0)