CVE-2026-39882
JSON

5.3medium

OpenTelemetry-Go OTLP HTTP exporters read unbounded HTTP response bodies

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.19% (higher than 8% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-w8rr-5gcm-pp58GO-2026-4985

Description

OpenTelemetry-Go is the Go implementation of OpenTelemetry. Prior to 1.43.0, the otlp HTTP exporters (traces/metrics/logs) read the full HTTP response body into an in-memory bytes.Buffer without a size cap. This is exploitable for memory exhaustion when the configured collector endpoint is attacker-controlled (or a network attacker can mitm the exporter connection). This vulnerability is fixed in 1.43.0.

Affected

Product or packageVersionsReported by
open-telemetry opentelemetry-go< 1.43.0CVE List
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp (Go)before 1.43.0GitHub Advisory Database, Go Vulnerability Database
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp (Go)before 1.43.0GitHub Advisory Database, Go Vulnerability Database
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp (Go)before 0.19.0GitHub Advisory Database, Go Vulnerability Database
opentelemetry opentelemetrybefore 1.43.0NVD

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-789

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

OpenTelemetry-Go is the Go implementation of OpenTelemetry. Prior to 1.43.0, the otlp HTTP exporters (traces/metrics/logs) read the full HTTP response body into an in-memory bytes.Buffer without a size cap. This is exploitable for memory exhaustion when the configured collector endpoint is attacker-controlled (or a network attacker can mitm the exporter connection). This vulnerability is fixed in 1.43.0.

GitHub Advisory Database

overview: this report shows that the otlp HTTP exporters (traces/metrics/logs) read the full HTTP response body into an in-memory bytes.Buffer without a size cap.

this is exploitable for memory exhaustion when the configured collector endpoint is attacker-controlled (or a network attacker can mitm the exporter connection).

severity

HIGH

not claiming: this is a remote dos against every default deployment. claiming: if the exporter sends traces to an untrusted collector endpoint (or over a network segment where mitm is realistic), that endpoint can crash the process via a large response body.

callsite (pinned):

  • exporters/otlp/otlptrace/otlptracehttp/client.go:199
  • exporters/otlp/otlptrace/otlptracehttp/client.go:230
  • exporters/otlp/otlpmetric/otlpmetrichttp/client.go:170
  • exporters/otlp/otlpmetric/otlpmetrichttp/client.go:201
  • exporters/otlp/otlplog/otlploghttp/client.go:190
  • exporters/otlp/otlplog/otlploghttp/client.go:221

permalinks (pinned):

root cause: each exporter client reads resp.Body using io.Copy(&respData, resp.Body) into a bytes.Buffer on both success and error paths, with no upper bound.

impact: a malicious collector can force large transient heap allocations during export (peak memory scales with attacker-chosen response size) and can potentially crash the instrumented process (oom).

affected component:

  • go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp
  • go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp
  • go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp

repro (local-only):

unzip poc.zip -d poc
cd poc
make canonical resp_bytes=33554432 chunk_delay_ms=0

expected output contains:

[CALLSITE_HIT]: otlptracehttp.UploadTraces::io.Copy(resp.Body)
[PROOF_MARKER]: resp_bytes=33554432 peak_alloc_bytes=118050512

control (same env, patched target):

unzip poc.zip -d poc
cd poc
make control resp_bytes=33554432 chunk_delay_ms=0

expected control output contains:

[CALLSITE_HIT]: otlptracehttp.UploadTraces::io.Copy(resp.Body)
[NC_MARKER]: resp_bytes=33554432 peak_alloc_bytes=512232

attachments: poc.zip (attached)

PR_DESCRIPTION.md

attack_scenario.md

poc.zip

Fixed in: https://github.com/open-telemetry/opentelemetry-go/pull/8108

Go Vulnerability Database

The OTLP HTTP exporters (traces, metrics, and logs) do not limit the size of the HTTP response body read from the collector. A malicious or misconfigured collector can send a large response body, leading to excessive memory consumption and potential process termination (OOM).

NVD (es)

OpenTelemetry-Go es la implementación en Go de OpenTelemetry. Antes de la 1.43.0, los exportadores HTTP de otlp (trazas/métricas/registros) leían el cuerpo completo de la respuesta HTTP en un bytes.Buffer en memoria sin un límite de tamaño. Esto es explotable para el agotamiento de memoria cuando el punto final del recolector configurado está controlado por el atacante (o un atacante de red puede realizar un MitM en la conexión del exportador). Esta vulnerabilidad está corregida en la versión 1.43.0.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-39882 changed 2026-04-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-w8rr-5gcm-pp58 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2026-4985 changed 2026-05-27CC-BY-4.0
NVDCVE-2026-39882 changed 2026-07-24Public domain