OpenTelemetry Collector: exporterhelper metadata partition-key collisions allow cross-tenant telemetry mixtureGHSA-cx3c-rmcx-ff35
MEDIUMFix: open-telemetry/opentelemetry-collector#14139GHSA-cx3c-rmcx-ff35 is a medium-severity (CVSS 5.9) vulnerability in go.opentelemetry.io/collector/exporter/exporterhelper. A fix is available for go.opentelemetry.io/collector/exporter/exporterhelper — see the affected versions and patch details below.
Real-World Exposure
go.opentelemetry.io/collector/exporter/exporterhelperReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
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_queueenabled andsending_queue::batch::partition::metadata_keysset to two or more keys (batching andmetadata_keysare 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"], nox-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_keysis 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_keysfromsending_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::batchon the affected exporters. - Set
include_metadata: falseon 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
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | go.opentelemetry.io/collector/exporter/exporterhelper | ≥ 0.147.0&&< 0.164.0 | 0.164.0go get go.opentelemetry.io/collector/exporter/exporterhelper@v0.164.0 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for go.opentelemetry.io/collector/exporter/exporterhelper, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update go.opentelemetry.io/collector/exporter/exporterhelper to 0.164.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-cx3c-rmcx-ff35 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-cx3c-rmcx-ff35 in your dependencies?
Find it across Go, including transitive dependencies.