Untrusted Search Path Affecting go.opentelemetry.io/otel/sdk/resource package, versions >=1.15.0-rc.2 <1.43.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.26% (18th 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-GOOPENTELEMETRYIOOTELSDKRESOURCE-15954212
  • published9 Apr 2026
  • disclosed8 Apr 2026
  • creditkodareef5

Introduced: 8 Apr 2026

CVE-2026-39883  (opens in a new tab)
CWE-426  (opens in a new tab)

How to fix?

Upgrade go.opentelemetry.io/otel/sdk/resource to version 1.43.0 or higher.

Overview

Affected versions of this package are vulnerable to Untrusted Search Path through the hostIDReaderBSD.read function in sdk/resource/host_id.go. An attacker can execute a malicious kenv binary by placing it earlier in $PATH and triggering host ID detection on BSD or Solaris systems when /etc/hostid is absent. When an application initializes OpenTelemetry resource detection under those conditions, it runs the attacker-controlled command in the application's context, allowing local code execution and compromising the process running the Go application.

CVSS Base Scores

version 4.0
version 3.1