HighGHSA-9h8m-3fm2-qjrqCVE-2026-24051GO-2026-4394

OpenTelemetry Go SDK Vulnerable to Arbitrary Code Execution via PATH Hijacking

Published 2 Feb 2026 · Updated 10 Sept 2026

Is your project on an affected go.opentelemetry.io/otel/sdk?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
>=1.21.0 <1.40.0
Fixed in
1.40.0
Update to the fixed version for your release line, for example:go get go.opentelemetry.io/otel/sdk@v1.40.0

Details

Impact

The OpenTelemetry Go SDK in version v1.20.0-1.39.0 is vulnerable to Path Hijacking (Untrusted Search Paths) on macOS/Darwin systems. The resource detection code in sdk/resource/host_id.go executes the ioreg system command using a search path. An attacker with the ability to locally modify the PATH environment variable can achieve Arbitrary Code Execution (ACE) within the context of the application.

Patches

This has been patched in d45961b, which was released with v1.40.0.

References

Is GHSA-9h8m-3fm2-qjrq in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected go.opentelemetry.io/otel/sdk, and gives you the command that fixes it.

More advisories for go.opentelemetry.io/otel/sdk

  • MediumCVE-2026-128085opentelemetry-go: AttributeValueLengthLimit is fully bypassed by attribute values composed of valid U+FFFD runes · 13 Nov 2026
  • LowCVE-2026-81869OpenTelemetry-Go: UTF-8 replacement rune bypasses attribute length truncation in go.opentelemetry.io/otel/sdk · 1 Oct 2026
  • LowCVE-2026-81870OpenTelemetry-Go: Exporter config logging may leak endpoint URLs in info logs in go.opentelemetry.io/otel/exporters/otlp/otlptrace · 1 Oct 2026
  • MediumCVE-2026-81869OpenTelemetry-Go: UTF-8 replacement rune bypasses attribute length truncation · 29 Sept 2026
  • LowCVE-2026-81870OpenTelemetry-Go: Exporter config logging may leak endpoint URLs in info logs · 17 Sept 2026
  • LowCVE-2026-39883Opentelemetry-go: BSD kenv command not using absolute path enables PATH hijacking in go.opentelemetry.io/otel/sdk · 24 Jul 2026
All 8 advisories for go.opentelemetry.io/otel/sdk

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.