Skip to main content
← All vulnerabilities
CVE-2026-24051GO-2026-4394GHSA-9H8M-3FM2-QJRQ

OpenTelemetry-Go Affected by Arbitrary Code Execution via PATH Hijacking

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.40.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

OpenTelemetry-Go is the Go implementation of OpenTelemetry. 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. A fix was released with v1.40.0.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • open-telemetry opentelemetry-go

    From 1.21.0 · fixed in 1.40.0

  • go.opentelemetry.io/otel/sdkGo

    From 1.21.0 · fixed in 1.40.0

References 2

GitHub · open-telemetry/opentelemetry-go