GHSA-cx3c-rmcx-ff35: OpenTelemetry Collector Exporterhelper Metadata Partition-key Collisions Allow Vulnerability

MODERATE
CVSS 5.9
CWE-172
Published
Advisory Summary

GHSA-cx3c-rmcx-ff35 is a MODERATE (CVSS 5.9) exporterhelper metadata partition-key collisions allow vulnerability (CWE-172: Encoding Error) affecting OpenTelemetry Collector libraries in the Go ecosystem. The issue involves exporterhelper metadata partition-key collisions allow cross-tenant telemetry mixture. Remediation is available by upgrading affected packages to version 0.164.0.

GHSA-cx3c-rmcx-ff35 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-cx3c-rmcx-ff35
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-172: Encoding Error
Affected Product OpenTelemetry Collector
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity High (I:H)
Availability None (A:N)

How to Fix GHSA-cx3c-rmcx-ff35

To remediate this vulnerability, upgrade all affected OpenTelemetry Collector dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

go.opentelemetry.io/collector/exporter/exporterhelper fixed: 0.164.0
Upgrade go.opentelemetry.io/collector/exporter/exporterhelper to 0.164.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for go.opentelemetry.io/collector/exporter/exporterhelper

How to Check if You Are Affected

To determine whether your application is affected by GHSA-cx3c-rmcx-ff35, inspect your project dependencies for OpenTelemetry Collector:

inspect dependencies for go.opentelemetry.io/collector/exporter/exporterhelper

Analyze the terminal output to locate any version of OpenTelemetry Collector in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.164.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-172: Encoding Error, where the product does not properly encode or decode the data, resulting in unexpected values. In OpenTelemetry Collector, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## 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

GHSA-cx3c-rmcx-ff35 Affected OpenTelemetry Collector Versions

1 component(s)
Fixed Versions:
0.164.0
Product / Package Ecosystem Affected Versions Fixed Version
go.opentelemetry.io/collector/exporter/exporterhelper
Go
≥ 0.147.0
< 0.164.0
0.164.0

References

Frequently Asked Questions

What is GHSA-cx3c-rmcx-ff35?
GHSA-cx3c-rmcx-ff35 is a security vulnerability in OpenTelemetry Collector involving exporterhelper metadata partition-key collisions allow cross-tenant telemetry mixture under CWE-172: Encoding Error.
Which OpenTelemetry Collector versions are affected?
Affected versions include releases prior to 0.164.0 across affected packages: go.opentelemetry.io/collector/exporter/exporterhelper.
What version fixes GHSA-cx3c-rmcx-ff35?
Upgrading to 0.164.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is go.opentelemetry.io/collector/exporter/exporterhelper affected?
Yes, go.opentelemetry.io/collector/exporter/exporterhelper is affected in releases prior to 0.164.0. Upgrade your dependency to 0.164.0 or later.
What is the CVSS score of GHSA-cx3c-rmcx-ff35?
GHSA-cx3c-rmcx-ff35 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N.
What CWE is associated with GHSA-cx3c-rmcx-ff35?
GHSA-cx3c-rmcx-ff35 is classified under CWE-172: Encoding Error (The product does not properly encode or decode the data, resulting in unexpected values.).
How can I check Go dependencies for GHSA-cx3c-rmcx-ff35?
Run the dependency tree command: 'inspect dependencies for go.opentelemetry.io/collector/exporter/exporterhelper'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-cx3c-rmcx-ff35",
  "modified" : "2026-12-01T01:59:32Z",
  "published" : "2026-12-01T01:59:32Z",
  "aliases" : [ ],
  "summary" : "OpenTelemetry Collector: exporterhelper metadata partition-key collisions allow cross-tenant telemetry mixture",
  "details" : "## Summary\n\nThe 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.\n\nUsers are only affected if their collector config has **all** of the following:\n\n- 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).\n- A receiver with `include_metadata: true`, so client metadata reaches the exporter.\n- Clients that can send multi-valued headers or metadata for those keys.\n\n## Details\n\n`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.\n\nFor example, with `metadata_keys: [x-shard, x-tenant]`, these two requests produce the same key `x-shard\\x00s\\x00x-tenant\\x00tenant-victim`:\n\n- Request A: `x-shard: [\"s\", \"x-tenant\", \"tenant-victim\"]`, no `x-tenant`\n- Request B: `x-shard: [\"s\"]`, `x-tenant: [\"tenant-victim\"]`\n\nBoth 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).\n\nThe 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.\n\n## Impact\n\n- **Integrity (high):** telemetry from one tenant, customer or shard can be exported as another's, poisoning their data.\n- **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.\n- Exploitation requires a client that controls its own metadata values, knowledge of the victim's key values, and landing in the same batch window.\n- This breaks the tenant isolation that `metadata_keys` is meant to provide in multi-tenant pipelines.\n\n## Mitigation\n\nUpgrade to `go.opentelemetry.io/collector/exporter/exporterhelper` v0.164.0 or later (collector release v0.164.0 or later).\n\nAffected versions: `>= 0.147.0, < 0.164.0`.\n\n## Workarounds\n\nIf users cannot upgrade immediately, implementing any of the following removes the exposure:\n\n- Remove `metadata_keys` from `sending_queue::batch::partition`. \n  - 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.\n- Disable `sending_queue::batch` on the affected exporters.\n- Set `include_metadata: false` on receivers if the exporters do not need client metadata.\n- Authenticate clients and have an auth extension or a proxy set the tenant and shard values.\n- Have a proxy reject requests that carry repeated (multi-valued) headers for the configured metadata keys.\n\n## Credits\n\n**Reported by:** ARSB",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "go.opentelemetry.io/collector/exporter/exporterhelper"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.147.0"
      }, {
        "fixed" : "0.164.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/open-telemetry/opentelemetry-collector/security/advisories/GHSA-cx3c-rmcx-ff35"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/open-telemetry/opentelemetry-collector/pull/14139"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/open-telemetry/opentelemetry-collector/commit/24210a76696065012d05a501262c9d91ca19eb48"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/open-telemetry/opentelemetry-collector/commit/fd8963df2ad6d95afdad68b96f3f17db94d5fa6d"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/open-telemetry/opentelemetry-collector"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.164.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-172" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-01T01:59:32Z",
    "nvd_published_at" : null
  }
}