CVE-2026-47701 OpenTelemetry Operator: ServiceMonitor bearerTokenFile reads arbitrary local file and sends contents as bearer auth
- Published
- Updated
- Exploit status
- No public exploit known
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
| Product | Affected versions | Fixed in |
|---|---|---|
| open-telemetry opentelemetry-operator | = < 0.152.0 | No fix listed |
| open-telemetry opentelemetry-operator(Go) | < 0.152.0 | 0.152.0 |
| redhat/rhacm2/acm-multicluster-observability-addon-rhel9(Red Hat:acm:2) | All versions | No fix listed |
References
- https://github.com/open-telemetry/opentelemetry-operator/security/advisories/GHSA-cxh2-4639-vmc5 vendor-advisory
- https://github.com/open-telemetry/opentelemetry-operator/pull/5104 patch
- https://github.com/open-telemetry/opentelemetry-operator/commit/95a8c2a3dc64a762d3ab8eba8c903b5702a03a9c
- https://github.com/open-telemetry/opentelemetry-operator/releases/tag/v0.152.0
- github.com product
- github.com
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2499680 issue-tracking
- www.cve.org
- nvd.nist.gov