{
  "id": "CVE-2026-47701",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-47701",
  "published_at": "2026-09-14T15:32:56.806Z",
  "title": "OpenTelemetry Operator: ServiceMonitor bearerTokenFile reads arbitrary local file and sends contents as bearer auth",
  "vendor": "open-telemetry",
  "product": "opentelemetry-operator",
  "cvss": {
    "score": 7.7,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "The OpenTelemetry Operator is a Kubernetes Operator for the OpenTelemetry Collector. Prior to 0.152.0, cmd/otel-allocator TargetAllocator instances with targetAllocator.prometheusCR.enabled set to true preserve a selected ServiceMonitor endpoint's bearerTokenFile value as HTTPClientConfig.Authorization.CredentialsFile. A tenant who can create or update a ServiceMonitor matched by serviceMonitorSelector and serviceMonitorNamespaceSelector can point bearerTokenFile at a file in the Collector pod, including /var/run/secrets/kubernetes.io/serviceaccount/token, and direct scraping to a tenant-controlled endpoint. The Collector reads that file at scrape time and sends its contents as bearer authorization on every scrape interval. Exploitation also requires the Collector service-account token or another sensitive file to be mounted and the Collector to reach the chosen target. The DenyFSAccessThroughSMs control was absent, allowing disclosure of the Collector's service-account JWT or other mounted files, and resulting Kubernetes API impact is limited by the Collector service account's permissions. This issue is fixed in version 0.152.0.",
  "cwe": "CWE-200",
  "cvss_by_source": {
    "cna": 7.7
  },
  "repos": [
    {
      "repo": "Magier/Oopserability",
      "url": "https://github.com/Magier/Oopserability",
      "created_at": "2026-03-08T14:09:04Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2012-08-21T21:08:24Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "open-telemetry",
        "product": "opentelemetry-operator",
        "ranges": [
          "\u003c 0.152.0"
        ],
        "fixed_in": [
          "0.152.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade opentelemetry-operator to 0.152.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/open-telemetry/opentelemetry-operator/security/advisories/GHSA-cxh2-4639-vmc5"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/open-telemetry/opentelemetry-operator/pull/5104"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/open-telemetry/opentelemetry-operator/commit/95a8c2a3dc64a762d3ab8eba8c903b5702a03a9c"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/open-telemetry/opentelemetry-operator/releases/tag/v0.152.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/api/v1/logs/search",
      "query_markers": [
        "q=error",
        "q=error /var/log/; cat /var/run/secrets/kubernetes.io/serviceaccount/token"
      ],
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "Magier/Oopserability"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Magier/Oopserability/README.md:38",
        "Magier/Oopserability/README.md:41"
      ]
    },
    {
      "method": "GET",
      "path_template": "/api/v1/nodes/{var}/proxy/pods",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer {var}"
        }
      ],
      "ports": [
        80,
        8080,
        8081,
        9999
      ],
      "protocol": "https",
      "repos": [
        "Magier/Oopserability"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Magier/Oopserability/README.md:64"
      ]
    },
    {
      "method": "GET",
      "path_template": "/api/v1/nodes/{var}/proxy/{var}",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer {var}"
        }
      ],
      "ports": [
        80,
        8080,
        8081,
        9999
      ],
      "protocol": "http",
      "repos": [
        "Magier/Oopserability"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Magier/Oopserability/agent/kubelet.go:54"
      ]
    },
    {
      "method": "GET",
      "path_template": "/jobs/serviceMonitor%2Foopservability%2Fredis-metrics%2F0/targets",
      "query_markers": [
        "collector_id={var}"
      ],
      "ports": [
        18080
      ],
      "protocol": "http",
      "repos": [
        "Magier/Oopserability"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Magier/Oopserability/manifests/cve-2026-47701/README.md:134"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/v1/diagnostics/run",
      "body_markers": [
        "\"command\":\"id \u0026\u0026 hostname \u0026\u0026 cat /proc/1/environ\"",
        "\"command\":\"cat /var/run/secrets/kubernetes.io/serviceaccount/token\"",
        "\"command\":\"echo {var}\""
      ],
      "content_type": "application/json",
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "Magier/Oopserability"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Magier/Oopserability/README.md:44",
        "Magier/Oopserability/README.md:54",
        "Magier/Oopserability/README.md:59"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/v1/diagnostics/upload",
      "body_markers": [
        "@payload"
      ],
      "content_type": "application/octet-stream",
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "Magier/Oopserability"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Magier/Oopserability/README.md:87"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/v1/nodes/{var}/proxy/run/kube-system/coredns-xxx/coredns",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer {var}"
        }
      ],
      "body_markers": [
        "cmd=cat /etc/resolv.conf"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        80,
        8080,
        8081,
        9999
      ],
      "protocol": "https",
      "repos": [
        "Magier/Oopserability"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Magier/Oopserability/README.md:69"
      ]
    }
  ],
  "rules": []
}
