Memory Allocation with Excessive Size Value Affecting go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp package, versions <1.43.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.19% (9th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GOOPENTELEMETRYIOOTELEXPORTERSOTLPOTLPTRACEOTLPTRACEHTTP-15954196
  • published9 Apr 2026
  • disclosed8 Apr 2026
  • credit1seal

Introduced: 8 Apr 2026

CVE-2026-39882  (opens in a new tab)
CWE-789  (opens in a new tab)

How to fix?

Upgrade go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp to version 1.43.0 or higher.

Overview

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value through the UploadTraces, UploadMetrics, and uploadLogs response-handling paths in exporters/otlp/otlptrace/otlptracehttp/client.go, exporters/otlp/otlpmetric/otlpmetrichttp/client.go, and exporters/otlp/otlplog/otlploghttp/client.go. An attacker can exhaust memory and crash the instrumented process by sending an oversized HTTP response body from a collector endpoint or a man-in-the-middle position. The vulnerable clients read the entire resp.Body into an in-memory bytes.Buffer for both success and error responses, allowing a malicious or misconfigured server to trigger large transient heap allocations during export. This breaks telemetry export and can terminate applications that send traces, metrics, or logs over OTLP HTTP.

CVSS Base Scores

version 4.0
version 3.1