Skip to content
OpenAdvisories
High · 7.7 CVE-2026-47701 EUVD-2026-77578GHSA-cxh2-4639-vmc5GO-2026-5339

OpenTelemetry Operator: ServiceMonitor bearerTokenFile reads arbitrary local file and sends contents as bearer auth

Published Sep 14, 2026 · Updated Sep 14, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
open-telemetry opentelemetry-operator < 0.152.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling kube-logging-operator 6.6.0-r2 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/open-telemetry/opentelemetry-operator < 0.152.0 0.152.0 GHSA-cxh2-4639-vmc5

Advisories 1

References