High severity · published Feb 2, 2026
CVE-2026-24051
OpenTelemetry-Go Affected by Arbitrary Code Execution via PATH Hijacking
7.0
CVSS
0.2%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
High
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 7% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
OP
opentelemetry-go · open-telemetry
>= 1.21.0, < 1.40.0 · source: vendor
OP
Opentelemetry · Opentelemetry
1.21.0 before 1.40.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-24051
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-24051
Patch
https://github.com/open-telemetry/opentelemetry-go/commit/d45961bcda453fcbdb6469c22d6e88a1f9970a53
Patch
https://github.com/open-telemetry/opentelemetry-go/security/advisories/GHSA-9h8m-3fm2-qjrq
More from opentelemetry-go
7.5
CVE-2026-29181
OpenTelemetry-Go multi-value `baggage` header extraction causes excessive allocations (remote dos amplification)
7.0
CVE-2026-39883
OpenTelemetry-Go has an incomplete fix for CVE-2026-24051: BSD kenv command not using absolute path enables PATH hijacking
6.3
CVE-2026-81871
OpenTelemetry-Go: Log gRPC exporter ignores env TLS certs, bypassing mTLS/pinning
6.3
CVE-2026-81872
OpenTelemetry-Go: BatchProcessor can busy-spin when export buffer is full
5.9
CVE-2026-45404
OpenTelemetry-Go: Unsynchronized baggage map can panic under concurrent access
