nday
GHSA-cx3c-rmcx-ff35

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

披露当天有补丁记录。已有补丁记录,修复版本是 go.opentelemetry.io/collector/exporter/exporterhelper 0.164.0。四个 PoC 来源都还没有收录。尚未列入 CISA KEV。

标签 攻击途径网络无需用户交互 软件包生态Go
这些标签的依据

这些标签由 nday 按固定规则从下列事实自动推导,不是 NVD、编号分配方或其他来源给出的。全部标签和规则见 ~/tags。

网络
GitHub 公告 GHSA-cx3c-rmcx-ff35 给出的 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N(CVSS 3.1)中的 AV:N
无需用户交互
GitHub 公告 GHSA-cx3c-rmcx-ff35 给出的 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N(CVSS 3.1)中的 UI:N
Go
GHSA-cx3c-rmcx-ff35:go 包 go.opentelemetry.io/collector/exporter/exporterhelper
当前阶段
PAT
披露
披露到补丁
T+0d
CVSS
5.9 MEDIUM v3.1

生命周期

横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
12-01T01:59Z
PAT补丁
12-01T02:01Z
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录

摘要

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

以上是 GitHub 安全公告 GHSA-cx3c-rmcx-ff35 中的原文,未经改写。

利用条件

按 CVSS 向量说明攻击需要的条件。
攻击途径 AV:N
网络:攻击者只要能通过网络访问到目标即可
攻击复杂度 AC:H
高:能否成功取决于攻击者无法控制的条件,例如须先收集目标信息或赢得竞态
所需权限 PR:L
低:普通用户权限
用户交互 UI:N
无:除攻击者外不需要任何人配合

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

CVSS 3.1 向量,来自 GitHub 安全公告 GHSA-cx3c-rmcx-ff35。

事件记录

+DIS披露

ghsa 报告了披露事件。

来源 ghsa · 本站 实时观测 · 原始记录
{
  "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
  }
}
来源未给时间,本站实时观测
+PAT补丁发布

公告给出修复版本 go.opentelemetry.io/collector/exporter/exporterhelper 0.164.0。公告附有修复提交。公告本身发布于 ,补丁实际发布时间没有记录。

来源 ghsa · 本站 实时观测 · 原始记录
{
  "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"
  }
}

纠错

报告错误或缺失

页面有误或缺失?告诉编辑;采纳后在本页修订记录公开说明,上游数据不会被改动。

讨论

0 条评论

还没有评论。