Open-telemetry opentelemetry-operator
OpenTelemetry Operator: ServiceMonitor bearerTokenFile reads arbitrary local file and sends contents as bearer auth
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.152.0
Fixed in 0.152.0
Mitigation
Upgrade opentelemetry-operator to 0.152.0 or later.
References
- Vendor advisory github.com/open-telemetry/opentelemetry-operat…
- Patch github.com/open-telemetry/opentelemetry-operat…
- Patch github.com/open-telemetry/opentelemetry-operat…
1 more
- Release notes github.com/open-telemetry/opentelemetry-operat…
Timeline
Days relative to CVE publicationPublic PoC known, its date not yet looked up; not in CISA KEV.
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Magier/Oopserability | 8 Mar 2026 −190 d | 0 | PoC older repo: PoC date unknown, not used for the first PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /api/v1/logs/search
- Query
q=errorq=error /var/log/; cat /var/run/secrets/kubernetes.io/serviceaccount/token- Ports
- 8080
- Seen in
- 1 repo: Magier/Oopserability
- Evidence
- Magier/Oopserability/README.md:38 Magier/Oopserability/README.md:41
GET /api/v1/nodes/{var}/proxy/pods
- Key headers
Authorization: Bearer {var}- Ports
- 80, 8080, 8081, 9999
- Seen in
- 1 repo: Magier/Oopserability
- Evidence
- Magier/Oopserability/README.md:64
GET /api/v1/nodes/{var}/proxy/{var}
- Key headers
Authorization: Bearer {var}- Ports
- 80, 8080, 8081, 9999
- Seen in
- 1 repo: Magier/Oopserability
- Evidence
- Magier/Oopserability/agent/kubelet.go:54
GET /jobs/serviceMonitor%2Foopservability%2Fredis-metrics%2F0/targets
- Query
collector_id={var}- Ports
- 18080
- Seen in
- 1 repo: Magier/Oopserability
- Evidence
- Magier/Oopserability/manifests/cve-2026-47701/README.md:134
POST /api/v1/diagnostics/run
- Body markers
"command":"id && hostname && cat /proc/1/environ""command":"cat /var/run/secrets/kubernetes.io/serviceaccount/token""command":"echo {var}"inapplication/json- Ports
- 8080
- Seen in
- 1 repo: Magier/Oopserability
- Evidence
- Magier/Oopserability/README.md:44 Magier/Oopserability/README.md:54 Magier/Oopserability/README.md:59
POST /api/v1/diagnostics/upload
- Body markers
@payloadinapplication/octet-stream- Ports
- 8080
- Seen in
- 1 repo: Magier/Oopserability
- Evidence
- Magier/Oopserability/README.md:87
POST /api/v1/nodes/{var}/proxy/run/kube-system/coredns-xxx/coredns
- Key headers
Authorization: Bearer {var}- Body markers
cmd=cat /etc/resolv.confinapplication/x-www-form-urlencoded- Ports
- 80, 8080, 8081, 9999
- Seen in
- 1 repo: Magier/Oopserability
- Evidence
- Magier/Oopserability/README.md:69
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/v1/logs/search\?(?:.*&)?q=error.*q=error /var/log/; cat /var/run/secrets/kubernetes\.io/serviceaccount/token
(?i)^/api/v1/nodes/[^/?#]*/proxy/pods(?:[?#].*)?$
(?i)^/api/v1/nodes/[^/?#]*/proxy/[^/?#]*(?:[?#].*)?$
(?i)^/jobs/serviceMonitor%2Foopservability%2Fredis-metrics%2F0/targets\?(?:.*&)?collector_id=\{var\}
(?i)^/api/v1/diagnostics/run(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-47701 open-telemetry opentelemetry-operator exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/v1/logs/search"; http.uri; content:"q=error"; http.uri; content:"q=error /var/log/|3b| cat /var/run/secrets/kubernetes.io/serviceaccount/token"; reference:url,poc.griffinguard.io/cve/CVE-2026-47701; classtype:web-application-attack; sid:9056754; rev:1;)
alert http any any -> $HOME_NET [80,8080,8081,9999] (msg:"GG PoC-Monitor CVE-2026-47701 open-telemetry opentelemetry-operator exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/v1/nodes/"; http.uri; content:"/proxy/pods"; http.header; content:"Authorization: Bearer "; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-47701; classtype:web-application-attack; sid:9293783; rev:1;)
alert http any any -> $HOME_NET [80,8080,8081,9999] (msg:"GG PoC-Monitor CVE-2026-47701 open-telemetry opentelemetry-operator exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/v1/nodes/"; http.uri; content:"/proxy/"; http.header; content:"Authorization: Bearer "; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-47701; classtype:web-application-attack; sid:9780152; rev:1;)
alert http any any -> $HOME_NET [18080] (msg:"GG PoC-Monitor CVE-2026-47701 open-telemetry opentelemetry-operator exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/jobs/serviceMonitor%2Foopservability%2Fredis-metrics%2F0/targets"; http.uri; content:"collector_id={var}"; reference:url,poc.griffinguard.io/cve/CVE-2026-47701; classtype:web-application-attack; sid:9223982; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-47701 open-telemetry opentelemetry-operator exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v1/diagnostics/run"; http.request_body; content:"|22|command|22|:|22|id && hostname && cat /proc/1/environ|22|"; http.request_body; content:"|22|command|22|:|22|cat /var/run/secrets/kubernetes.io/serviceaccount/token|22|"; http.request_body; content:"|22|command|22|:|22|echo "; reference:url,poc.griffinguard.io/cve/CVE-2026-47701; classtype:web-application-attack; sid:9586114; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: open-telemetry opentelemetry-operator exploit attempt (CVE-2026-47701)
id: gg-pocmon-cve-2026-47701-9056754
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-47701. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-47701
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/v1/logs/search'
cs-uri-query|contains|all:
- 'q=error'
- 'q=error /var/log/; cat /var/run/secrets/kubernetes.io/serviceaccount/token'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.47701
title: open-telemetry opentelemetry-operator exploit attempt (CVE-2026-47701)
id: gg-pocmon-cve-2026-47701-9293783
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-47701. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-47701
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/v1/nodes/'
- '/proxy/pods'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.47701
title: open-telemetry opentelemetry-operator exploit attempt (CVE-2026-47701)
id: gg-pocmon-cve-2026-47701-9780152
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-47701. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-47701
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/v1/nodes/'
- '/proxy/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.47701
title: open-telemetry opentelemetry-operator exploit attempt (CVE-2026-47701)
id: gg-pocmon-cve-2026-47701-9223982
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-47701. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-47701
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/jobs/serviceMonitor%2Foopservability%2Fredis-metrics%2F0/targets'
cs-uri-query|contains|all:
- 'collector_id={var}'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.47701
title: open-telemetry opentelemetry-operator exploit attempt (CVE-2026-47701)
id: gg-pocmon-cve-2026-47701-9586114
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-47701. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-47701
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v1/diagnostics/run'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.47701