nday
GHSA-cx3c-rmcx-ff35

OpenTelemetry Collector: exporterhelper metadata partition-key collisions allow cross-tenant telemetry mixture

Hay constancia de un parche el mismo día de la divulgación. Versión corregida: go.opentelemetry.io/collector/exporter/exporterhelper 0.164.0. Ninguna de las cuatro fuentes de PoC la recoge. No figura en el KEV de CISA.

tags accessnetworkno user interaction ecosystemGo
why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

network
AV:N in CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N (CVSS 3.1) from GitHub advisory GHSA-cx3c-rmcx-ff35
no user interaction
UI:N in CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N (CVSS 3.1) from GitHub advisory GHSA-cx3c-rmcx-ff35
Go
GHSA-cx3c-rmcx-ff35: go packages go.opentelemetry.io/collector/exporter/exporterhelper
etapa
PAT
divulgación
divulgación → parche
T+0d
cvss
5.9 MEDIUM v3.1

Ciclo de vida

Eje x en UTC; punto = minuto exacto, barra ancha = solo fecha, hueco = desconocida o inferida.
fecha desconocida
DISdivulgada
12-01T01:59Z
PATparcheada
12-01T02:01Z
ANAanalizada
sin registro aún
POCPoC
sin registro aún
ITWexplotada
sin registro aún
KEVen KEV
sin registro aún

Descripción

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

Original text of GitHub advisory GHSA-cx3c-rmcx-ff35, shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:H
High: success depends on conditions outside the attacker's control, such as gathering details of the target or winning a race
Privileges required PR:L
Low: ordinary user privileges
User interaction UI:N
None: no action by anyone other than the attacker

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

CVSS 3.1 vector from GitHub advisory GHSA-cx3c-rmcx-ff35.

Registro de eventos

+DISdivulgación

ghsa notificó una divulgación.

fuente ghsa · nday , observado en tiempo real · en bruto
{
  "id": 563133,
  "type": "disclosed",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-cx3c-rmcx-ff35",
  "occurred_at": "2026-12-01T01:59:32Z",
  "observed_at": "2026-12-01T02:01:35.324932Z",
  "is_backfill": false,
  "dedupe_key": "GHSA-cx3c-rmcx-ff35",
  "detail": {
    "state": "PUBLISHED",
    "ghsa_id": "GHSA-cx3c-rmcx-ff35",
    "withdrawn_at": null
  }
}
hora observada en tiempo real por nday
+PATparche registrado

Versión corregida según el aviso: go.opentelemetry.io/collector/exporter/exporterhelper 0.164.0. El aviso enlaza los commits de la corrección. Aviso publicado el ; no consta cuándo se publicó el parche en sí.

fuente ghsa · nday , observado en tiempo real · en bruto
{
  "id": 563134,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-cx3c-rmcx-ff35",
  "occurred_at": null,
  "observed_at": "2026-12-01T02:01:35.324932Z",
  "is_backfill": false,
  "dedupe_key": "GHSA-cx3c-rmcx-ff35",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 5.9,
        "vector_string": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N"
      },
      "cvss_v4": {
        "score": 0.0,
        "vector_string": null
      }
    },
    "cwes": [
      {
        "name": "Improper Encoding or Decoding of Data",
        "cwe_id": "CWE-172"
      }
    ],
    "ghsa_id": "GHSA-cx3c-rmcx-ff35",
    "packages": [
      {
        "name": "go.opentelemetry.io/collector/exporter/exporterhelper",
        "ecosystem": "go",
        "first_patched_version": "0.164.0",
        "vulnerable_version_range": ">= 0.147.0, < 0.164.0"
      }
    ],
    "severity": "medium",
    "references": [
      "https://github.com/open-telemetry/opentelemetry-collector/security/advisories/GHSA-cx3c-rmcx-ff35",
      "https://github.com/open-telemetry/opentelemetry-collector/pull/14139",
      "https://github.com/open-telemetry/opentelemetry-collector/commit/24210a76696065012d05a501262c9d91ca19eb48",
      "https://github.com/open-telemetry/opentelemetry-collector/commit/fd8963df2ad6d95afdad68b96f3f17db94d5fa6d",
      "https://github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.164.0",
      "https://github.com/advisories/GHSA-cx3c-rmcx-ff35"
    ],
    "fix_commit_urls": [
      "https://github.com/open-telemetry/opentelemetry-collector/pull/14139",
      "https://github.com/open-telemetry/opentelemetry-collector/commit/24210a76696065012d05a501262c9d91ca19eb48",
      "https://github.com/open-telemetry/opentelemetry-collector/commit/fd8963df2ad6d95afdad68b96f3f17db94d5fa6d"
    ],
    "github_reviewed_at": "2026-12-01T01:59:32Z",
    "advisory_updated_at": "2026-12-01T01:59:33Z",
    "source_code_location": "https://github.com/open-telemetry/opentelemetry-collector",
    "advisory_published_at": "2026-12-01T01:59:32Z"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Discussion

0 comments

No comments yet.